colleges.forms module

class colleges.forms.FellowshipForm(*args, **kwargs)[source]

Bases: django.forms.models.ModelForm

class Meta[source]

Bases: object

model

alias of colleges.models.Fellowship

fields = ('contributor', 'start_date', 'until_date', 'guest')
help_texts = {'guest': '[select if this is a 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 = {'contributor': <django.forms.models.ModelChoiceField object>, 'guest': <django.forms.fields.BooleanField object>, 'start_date': <django.forms.fields.DateField 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

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

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.FellowVotingRemoveSubmissionForm(*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

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

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.SubmissionAddVotingFellowForm(*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

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

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.PotentialFellowship

fields = ['profile']
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 = {'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.PotentialFellowship

fields = ['status']
base_fields = {'status': <django.forms.fields.TypedChoiceField object>}
declared_fields = {}
property media
class colleges.forms.PotentialFellowshipEventForm(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.PotentialFellowshipEvent

fields = ['event', 'comments']
base_fields = {'comments': <django.forms.fields.CharField object>, 'event': <django.forms.fields.TypedChoiceField object>}
declared_fields = {}
property media