theses.forms module¶
-
class
theses.forms.
BaseRequestThesisLinkForm
(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
theses.models.ThesisLink
-
fields
= ['type', 'acad_field', 'specialties', 'approaches', 'title', 'author', 'supervisor', 'institution', 'defense_date', 'pub_link', 'abstract']¶
-
widgets
= {'defense_date': <django.forms.widgets.SelectDateWidget object>, 'pub_link': <django.forms.widgets.TextInput object>}¶
-
-
base_fields
= {'abstract': <django.forms.fields.CharField object>, 'acad_field': <django.forms.models.ModelChoiceField object>, 'approaches': <django.forms.fields.MultipleChoiceField object>, 'author': <django.forms.fields.CharField object>, 'defense_date': <django.forms.fields.DateField object>, 'institution': <django.forms.fields.CharField object>, 'pub_link': <django.forms.fields.URLField object>, 'specialties': <django.forms.models.ModelMultipleChoiceField object>, 'supervisor': <django.forms.fields.CharField object>, 'title': <django.forms.fields.CharField object>, 'type': <django.forms.fields.TypedChoiceField object>}¶
-
declared_fields
= {}¶
-
property
media
¶
-
class
-
class
theses.forms.
RequestThesisLinkForm
(*args, **kwargs)[source]¶ Bases:
theses.forms.BaseRequestThesisLinkForm
-
base_fields
= {'abstract': <django.forms.fields.CharField object>, 'acad_field': <django.forms.models.ModelChoiceField object>, 'approaches': <django.forms.fields.MultipleChoiceField object>, 'author': <django.forms.fields.CharField object>, 'defense_date': <django.forms.fields.DateField object>, 'institution': <django.forms.fields.CharField object>, 'pub_link': <django.forms.fields.URLField object>, 'specialties': <django.forms.models.ModelMultipleChoiceField object>, 'supervisor': <django.forms.fields.CharField object>, 'title': <django.forms.fields.CharField object>, 'type': <django.forms.fields.TypedChoiceField object>}¶
-
declared_fields
= {}¶
-
property
media
¶
-
-
class
theses.forms.
VetThesisLinkForm
(*args, **kwargs)[source]¶ Bases:
theses.forms.BaseRequestThesisLinkForm
-
MODIFY
= 0¶
-
ACCEPT
= 1¶
-
REFUSE
= 2¶
-
THESIS_ACTION_CHOICES
= ((0, 'modify'), (1, 'accept'), (2, 'refuse (give reason below)'))¶
-
EMPTY_CHOICE
= 0¶
-
ALREADY_EXISTS
= 1¶
-
LINK_DOES_NOT_WORK
= 2¶
-
THESIS_REFUSAL_CHOICES
= ((0, '---'), (1, 'A link to this thesis already exists'), (2, 'The external link to this thesis does not work'))¶
-
base_fields
= {'abstract': <django.forms.fields.CharField object>, 'acad_field': <django.forms.models.ModelChoiceField object>, 'action_option': <django.forms.fields.ChoiceField object>, 'approaches': <django.forms.fields.MultipleChoiceField object>, 'author': <django.forms.fields.CharField object>, 'defense_date': <django.forms.fields.DateField object>, 'institution': <django.forms.fields.CharField object>, 'justification': <django.forms.fields.CharField object>, 'pub_link': <django.forms.fields.URLField object>, 'refusal_reason': <django.forms.fields.ChoiceField object>, 'specialties': <django.forms.models.ModelMultipleChoiceField object>, 'supervisor': <django.forms.fields.CharField object>, 'title': <django.forms.fields.CharField object>, 'type': <django.forms.fields.TypedChoiceField object>}¶
-
declared_fields
= {'action_option': <django.forms.fields.ChoiceField object>, 'justification': <django.forms.fields.CharField object>, 'refusal_reason': <django.forms.fields.ChoiceField object>}¶
-
property
media
¶
-
-
class
theses.forms.
ThesisLinkSearchForm
(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
= {'abstract_keyword': <django.forms.fields.CharField object>, 'author': <django.forms.fields.CharField object>, 'supervisor': <django.forms.fields.CharField object>, 'title_keyword': <django.forms.fields.CharField object>}¶
-
declared_fields
= {'abstract_keyword': <django.forms.fields.CharField object>, 'author': <django.forms.fields.CharField object>, 'supervisor': <django.forms.fields.CharField object>, 'title_keyword': <django.forms.fields.CharField object>}¶
-
property
media
¶
-
-
class
theses.forms.
ThesisSearchForm
(*args, **kwargs)[source]¶ Bases:
django.forms.forms.Form
-
base_fields
= {'abstract': <django.forms.fields.CharField object>, 'author': <django.forms.fields.CharField object>, 'supervisor': <django.forms.fields.CharField object>, 'title': <django.forms.fields.CharField object>}¶
-
declared_fields
= {'abstract': <django.forms.fields.CharField object>, 'author': <django.forms.fields.CharField object>, 'supervisor': <django.forms.fields.CharField object>, 'title': <django.forms.fields.CharField object>}¶
-
property
media
¶
-