invitations.forms module¶
-
class
invitations.forms.
RegistrationInvitationFilterForm
(data=None, files=None, auto_id='id_%s', prefix=None, initial=None, error_class=<class 'django.forms.utils.ErrorList'>, label_suffix=None, empty_permitted=False, field_order=None, use_required_attribute=None, renderer=None)[source]¶ Bases:
django.forms.forms.Form
-
base_fields
= {'term': <django.forms.fields.CharField object>}¶
-
declared_fields
= {'term': <django.forms.fields.CharField object>}¶
-
property
media
¶
-
-
class
invitations.forms.
SuggestionSearchForm
(data=None, files=None, auto_id='id_%s', prefix=None, initial=None, error_class=<class 'django.forms.utils.ErrorList'>, label_suffix=None, empty_permitted=False, field_order=None, use_required_attribute=None, renderer=None)[source]¶ Bases:
django.forms.forms.Form
-
base_fields
= {'last_name': <django.forms.fields.CharField object>}¶
-
declared_fields
= {'last_name': <django.forms.fields.CharField object>}¶
-
property
media
¶
-
-
class
invitations.forms.
CitationNotificationForm
(*args, **kwargs)[source]¶ Bases:
invitations.forms.AcceptRequestMixin
,django.forms.models.ModelForm
-
clean
(*args, **kwargs)[source]¶ Hook for doing any extra form-wide cleaning after Field.clean() has been called on every field. Any ValidationError raised by this method will not be associated with a particular field; it will have a special-case association with the field named ‘__all__’.
-
save
(*args, **kwargs)[source]¶ Save this form’s self.instance object if commit=True. Otherwise, add a save_m2m() method to the form which can be called after the instance is saved manually at a later time. Return the model instance.
-
base_fields
= {'contributor': <django.forms.models.ModelChoiceField object>, 'publication': <django.forms.models.ModelChoiceField object>, 'submission': <django.forms.models.ModelChoiceField object>}¶
-
declared_fields
= {'publication': <django.forms.models.ModelChoiceField object>, 'submission': <django.forms.models.ModelChoiceField object>}¶
-
property
media
¶
-
-
class
invitations.forms.
CitationNotificationProcessForm
(*args, **kwargs)[source]¶ Bases:
invitations.forms.AcceptRequestMixin
,django.forms.models.ModelForm
-
base_fields
= {}¶
-
declared_fields
= {}¶
-
property
media
¶
-
-
class
invitations.forms.
RegistrationInvitationAddCitationForm
(*args, **kwargs)[source]¶ Bases:
invitations.forms.AcceptRequestMixin
,django.forms.models.ModelForm
-
save
(*args, **kwargs)[source]¶ Save this form’s self.instance object if commit=True. Otherwise, add a save_m2m() method to the form which can be called after the instance is saved manually at a later time. Return the model instance.
-
base_fields
= {'cited_in_publications': <django.forms.models.ModelMultipleChoiceField object>, 'cited_in_submissions': <django.forms.models.ModelMultipleChoiceField object>}¶
-
declared_fields
= {'cited_in_publications': <django.forms.models.ModelMultipleChoiceField object>, 'cited_in_submissions': <django.forms.models.ModelMultipleChoiceField object>}¶
-
property
media
¶
-
-
class
invitations.forms.
RegistrationInvitationMergeForm
(*args, **kwargs)[source]¶ Bases:
invitations.forms.AcceptRequestMixin
,django.forms.models.ModelForm
Merge RegistrationInvitations.
This form will merge the instance with any other RegistrationInvitation selected into a single RegistrationInvitation.
-
base_fields
= {'invitation': <django.forms.models.ModelChoiceField object>}¶
-
declared_fields
= {'invitation': <django.forms.models.ModelChoiceField object>}¶
-
property
media
¶
-
-
class
invitations.forms.
RegistrationInvitationForm
(*args, **kwargs)[source]¶ Bases:
invitations.forms.AcceptRequestMixin
,django.forms.models.ModelForm
-
class
Meta
[source]¶ Bases:
object
-
model
¶
-
fields
= ('profile', 'title', 'first_name', 'last_name', 'email', 'message_style', 'invitation_type', 'personal_message')¶
-
widgets
= {'profile': <django.forms.widgets.HiddenInput object>}¶
-
-
save
(*args, **kwargs)[source]¶ Save this form’s self.instance object if commit=True. Otherwise, add a save_m2m() method to the form which can be called after the instance is saved manually at a later time. Return the model instance.
-
base_fields
= {'cited_in_publications': <django.forms.models.ModelMultipleChoiceField object>, 'cited_in_submissions': <django.forms.models.ModelMultipleChoiceField object>, 'email': <django.forms.fields.EmailField object>, 'first_name': <django.forms.fields.CharField object>, 'invitation_type': <django.forms.fields.TypedChoiceField object>, 'last_name': <django.forms.fields.CharField object>, 'message_style': <django.forms.fields.TypedChoiceField object>, 'personal_message': <django.forms.fields.CharField object>, 'profile': <django.forms.models.ModelChoiceField object>, 'title': <django.forms.fields.TypedChoiceField object>}¶
-
declared_fields
= {'cited_in_publications': <django.forms.models.ModelMultipleChoiceField object>, 'cited_in_submissions': <django.forms.models.ModelMultipleChoiceField object>}¶
-
property
media
¶
-
class
-
class
invitations.forms.
RegistrationInvitationReminderForm
(*args, **kwargs)[source]¶ Bases:
invitations.forms.AcceptRequestMixin
,django.forms.models.ModelForm
-
save
(*args, **kwargs)[source]¶ Save this form’s self.instance object if commit=True. Otherwise, add a save_m2m() method to the form which can be called after the instance is saved manually at a later time. Return the model instance.
-
base_fields
= {}¶
-
declared_fields
= {}¶
-
property
media
¶
-
-
class
invitations.forms.
RegistrationInvitationMapToContributorForm
(*args, **kwargs)[source]¶ Bases:
invitations.forms.AcceptRequestMixin
,django.forms.models.ModelForm
-
contributor
= None¶
-
clean
(*args, **kwargs)[source]¶ Hook for doing any extra form-wide cleaning after Field.clean() has been called on every field. Any ValidationError raised by this method will not be associated with a particular field; it will have a special-case association with the field named ‘__all__’.
-
save
(*args, **kwargs)[source]¶ Save this form’s self.instance object if commit=True. Otherwise, add a save_m2m() method to the form which can be called after the instance is saved manually at a later time. Return the model instance.
-
base_fields
= {}¶
-
declared_fields
= {}¶
-
property
media
¶
-