colleges.forms module

class colleges.forms.FellowshipSelectForm(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 = {'fellowship': <django.forms.models.ModelChoiceField object>}
declared_fields = {'fellowship': <django.forms.models.ModelChoiceField object>}
property media
class colleges.forms.FellowshipDynSelForm(*args, **kwargs)[source]

Bases: django.forms.forms.Form

search_results()[source]
base_fields = {'action_target_element_id': <django.forms.fields.CharField object>, 'action_url_base_kwargs': <django.forms.fields.JSONField object>, 'action_url_name': <django.forms.fields.CharField object>, 'q': <django.forms.fields.CharField object>}
declared_fields = {'action_target_element_id': <django.forms.fields.CharField object>, 'action_url_base_kwargs': <django.forms.fields.JSONField object>, 'action_url_name': <django.forms.fields.CharField object>, 'q': <django.forms.fields.CharField object>}
property media
class colleges.forms.FellowshipForm(*args, **kwargs)[source]

Bases: django.forms.models.ModelForm

class Meta[source]

Bases: object

model

alias of colleges.models.fellowship.Fellowship

fields = ('college', 'contributor', 'start_date', 'until_date', 'status')
help_texts = {'status': '[select if this is a regular, senior or guest Fellowship]'}
clean()[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__’.

base_fields = {'college': <django.forms.models.ModelChoiceField object>, 'contributor': <django.forms.models.ModelChoiceField object>, 'start_date': <django.forms.fields.DateField object>, 'status': <django.forms.fields.TypedChoiceField object>, 'until_date': <django.forms.fields.DateField object>}
declared_fields = {}
property media
class colleges.forms.FellowshipTerminateForm(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, instance=None, use_required_attribute=None, renderer=None)[source]

Bases: django.forms.models.ModelForm

class Meta[source]

Bases: object

model

alias of colleges.models.fellowship.Fellowship

fields = []
save()[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 colleges.forms.FellowshipRemoveSubmissionForm(*args, **kwargs)[source]

Bases: django.forms.models.ModelForm

Use this form in admin-accessible views only! It could possibly reveal the identity of the Editor-in-charge!

class Meta[source]

Bases: object

model

alias of colleges.models.fellowship.Fellowship

fields = []
clean()[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()[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 colleges.forms.FellowshipAddSubmissionForm(*args, **kwargs)[source]

Bases: django.forms.models.ModelForm

class Meta[source]

Bases: object

model

alias of colleges.models.fellowship.Fellowship

fields = []
save()[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 = {'submission': <django.forms.models.ModelChoiceField object>}
declared_fields = {'submission': <django.forms.models.ModelChoiceField object>}
property media
class colleges.forms.SubmissionAddFellowshipForm(*args, **kwargs)[source]

Bases: django.forms.models.ModelForm

class Meta[source]

Bases: object

model

alias of submissions.models.submission.Submission

fields = []
save()[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 = {'fellowship': <django.forms.models.ModelChoiceField object>}
declared_fields = {'fellowship': <django.forms.models.ModelChoiceField object>}
property media
class colleges.forms.FellowshipRemoveProceedingsForm(*args, **kwargs)[source]

Bases: django.forms.models.ModelForm

Use this form in admin-accessible views only! It could possibly reveal the identity of the Editor-in-charge!

class Meta[source]

Bases: object

model

alias of colleges.models.fellowship.Fellowship

fields = []
clean()[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()[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 colleges.forms.FellowshipAddProceedingsForm(*args, **kwargs)[source]

Bases: django.forms.models.ModelForm

class Meta[source]

Bases: object

model

alias of colleges.models.fellowship.Fellowship

fields = []
save()[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 = {'proceedings': <django.forms.models.ModelChoiceField object>}
declared_fields = {'proceedings': <django.forms.models.ModelChoiceField object>}
property media
class colleges.forms.PotentialFellowshipForm(*args, **kwargs)[source]

Bases: scipost.forms.RequestFormMixin, django.forms.models.ModelForm

class Meta[source]

Bases: object

model

alias of colleges.models.potential_fellowship.PotentialFellowship

fields = ['college', 'profile']
clean_profile()[source]

Check that no preexisting PotentialFellowship exists.

save()[source]

The default status is IDENTIFIED, which is appropriate if the PotentialFellow was added directly by SciPost Admin. But if the PotFel is nominated by somebody on the Advisory Board or by an existing Fellow, the status is set to NOMINATED and the person nominating is added to the list of in_agreement with election.

base_fields = {'college': <django.forms.models.ModelChoiceField object>, 'profile': <django.forms.models.ModelChoiceField object>}
declared_fields = {'profile': <django.forms.models.ModelChoiceField object>}
property media
class colleges.forms.PotentialFellowshipStatusForm(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, instance=None, use_required_attribute=None, renderer=None)[source]

Bases: django.forms.models.ModelForm

class Meta[source]

Bases: object

model

alias of colleges.models.potential_fellowship.PotentialFellowship

fields = ['status']
base_fields = {'status': <django.forms.fields.TypedChoiceField object>}
declared_fields = {}
property media
class colleges.forms.PotentialFellowshipEventForm(*args, **kwargs)[source]

Bases: django.forms.models.ModelForm

class Meta[source]

Bases: object

model

alias of colleges.models.potential_fellowship.PotentialFellowshipEvent

fields = ['event', 'comments']
base_fields = {'comments': <django.forms.fields.CharField object>, 'event': <django.forms.fields.TypedChoiceField object>}
declared_fields = {}
property media
class colleges.forms.FellowshipNominationForm(*args, **kwargs)[source]

Bases: django.forms.models.ModelForm

class Meta[source]

Bases: object

model

alias of colleges.models.nomination.FellowshipNomination

fields = ['nominated_by', 'college', 'nominator_comments']
clean()[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()[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 = {'college': <django.forms.models.ModelChoiceField object>, 'nominated_by': <django.forms.models.ModelChoiceField object>, 'nominator_comments': <django.forms.fields.CharField object>}
declared_fields = {}
property media
class colleges.forms.FellowshipNominationSearchForm(*args, **kwargs)[source]

Bases: django.forms.forms.Form

Filter a FellowshipNomination queryset using basic search fields.

search_results()[source]
base_fields = {'college': <django.forms.models.ModelChoiceField object>, 'name': <django.forms.fields.CharField object>, 'specialty': <django.forms.models.ModelChoiceField object>}
declared_fields = {'college': <django.forms.models.ModelChoiceField object>, 'name': <django.forms.fields.CharField object>, 'specialty': <django.forms.models.ModelChoiceField object>}
property media
class colleges.forms.FellowshipNominationCommentForm(*args, **kwargs)[source]

Bases: django.forms.models.ModelForm

class Meta[source]

Bases: object

model

alias of colleges.models.nomination.FellowshipNominationComment

fields = ['nomination', 'by', 'text', 'on']
base_fields = {'by': <django.forms.models.ModelChoiceField object>, 'nomination': <django.forms.models.ModelChoiceField object>, 'on': <django.forms.fields.DateTimeField object>, 'text': <django.forms.fields.CharField object>}
declared_fields = {}
property media
class colleges.forms.FellowshipNominationDecisionForm(*args, **kwargs)[source]

Bases: django.forms.models.ModelForm

class Meta[source]

Bases: object

model

alias of colleges.models.nomination.FellowshipNominationDecision

fields = ['nomination', 'outcome', 'fixed_on', 'comments']
base_fields = {'comments': <django.forms.fields.CharField object>, 'fixed_on': <django.forms.fields.DateTimeField object>, 'nomination': <django.forms.models.ModelChoiceField object>, 'outcome': <django.forms.fields.TypedChoiceField object>}
declared_fields = {}
property media
class colleges.forms.FellowshipInvitationResponseForm(*args, **kwargs)[source]

Bases: django.forms.models.ModelForm

class Meta[source]

Bases: object

model

alias of colleges.models.nomination.FellowshipInvitation

fields = ['nomination', 'response', 'postpone_start_to', 'comments']
base_fields = {'comments': <django.forms.fields.CharField object>, 'nomination': <django.forms.models.ModelChoiceField object>, 'postpone_start_to': <django.forms.fields.DateField object>, 'response': <django.forms.fields.TypedChoiceField object>}
declared_fields = {}
property media