invitations.forms module

class invitations.forms.AcceptRequestMixin(*args, **kwargs)[source]

Bases: object

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

search(qs)[source]
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

search()[source]
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

class Meta[source]

Bases: object

model

alias of invitations.models.CitationNotification

fields = ('contributor', 'submission', 'publication')
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

class Meta[source]

Bases: object

model

alias of invitations.models.CitationNotification

fields = ()
get_all_notifications()[source]
base_fields = {}
declared_fields = {}
property media
class invitations.forms.RegistrationInvitationAddCitationForm(*args, **kwargs)[source]

Bases: invitations.forms.AcceptRequestMixin, django.forms.models.ModelForm

class Meta[source]

Bases: object

model

alias of invitations.models.RegistrationInvitation

fields = ()
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.

class Meta[source]

Bases: object

model

alias of invitations.models.RegistrationInvitation

fields = ()
save(*args, **kwargs)[source]

Merge the two RegistationInvitations into one.

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

alias of invitations.models.RegistrationInvitation

fields = ('profile', 'title', 'first_name', 'last_name', 'email', 'message_style', 'invitation_type', 'personal_message')
widgets = {'profile': <django.forms.widgets.HiddenInput object>}
clean_email()[source]
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 invitations.forms.RegistrationInvitationReminderForm(*args, **kwargs)[source]

Bases: invitations.forms.AcceptRequestMixin, django.forms.models.ModelForm

class Meta[source]

Bases: object

model

alias of invitations.models.RegistrationInvitation

fields = ()
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
class Meta[source]

Bases: object

model

alias of invitations.models.RegistrationInvitation

fields = ()
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__’.

get_contributor()[source]
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.RegistrationInvitationMarkForm(*args, **kwargs)[source]

Bases: invitations.forms.AcceptRequestMixin, django.forms.models.ModelForm

class Meta[source]

Bases: object

model

alias of invitations.models.RegistrationInvitation

fields = ()
base_fields = {}
declared_fields = {}
property media
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.