AKSubmission.forms module
Submission-specific forms
- class AKSubmission.forms.AKForm(*args, **kwargs)[source]
Bases:
AvailabilitiesFormMixin
,ModelForm
Base form to add and edit AKs
Contains suitable widgets for the different data types, restricts querysets (e.g., of requirements) to entries belonging to the event this AK belongs to. Prepares initial slot creation (by accepting multiple input formats and a list of slots to generate), automatically generate short names and wiki links if necessary
Will be modified/used by
AKSubmissionForm
(that allows to add slots and excludes links) andAKWishForm
Form fields:
name
: Name (CharField
)short_name
: Short Name (CharField
)protocol_link
: Protocol Link (URLField
)owners
: Owners (ModelMultipleChoiceField
)description
: Description (CharField
)category
: Category (ModelChoiceField
)reso
: Resolution Intention (BooleanField
)present
: Present this AK (NullBooleanField
)requirements
: Requirements (ModelMultipleChoiceField
)conflicts
: Conflicting AKs (ModelMultipleChoiceField
)prerequisites
: Prerequisite AKs (ModelMultipleChoiceField
)notes
: Organizational Notes (CharField
)event
: Event (ModelChoiceField
)availabilities
: Availability (CharField
)
- class AKSubmission.forms.AKSubmissionForm(*args, **kwargs)[source]
Bases:
AKForm
Form for Submitting new AKs
Is a special variant of
AKForm
that does not allow to manually edit wiki and protocol links and enforces the generation of at least one slot.Form fields:
name
: Name (CharField
)short_name
: Short Name (CharField
)owners
: Owners (ModelMultipleChoiceField
)description
: Description (CharField
)category
: Category (ModelChoiceField
)reso
: Resolution Intention (BooleanField
)present
: Present this AK (NullBooleanField
)requirements
: Requirements (ModelMultipleChoiceField
)conflicts
: Conflicting AKs (ModelMultipleChoiceField
)prerequisites
: Prerequisite AKs (ModelMultipleChoiceField
)notes
: Organizational Notes (CharField
)event
: Event (ModelChoiceField
)availabilities
: Availability (CharField
)
- class AKSubmission.forms.AKWishForm(*args, **kwargs)[source]
Bases:
AKForm
Form for submitting or editing wishes
Is a special variant of
AKForm
that does not allow to specify owner(s) or manually edit wiki and protocol linksForm fields:
name
: Name (CharField
)short_name
: Short Name (CharField
)description
: Description (CharField
)category
: Category (ModelChoiceField
)reso
: Resolution Intention (BooleanField
)present
: Present this AK (NullBooleanField
)requirements
: Requirements (ModelMultipleChoiceField
)conflicts
: Conflicting AKs (ModelMultipleChoiceField
)prerequisites
: Prerequisite AKs (ModelMultipleChoiceField
)notes
: Organizational Notes (CharField
)event
: Event (ModelChoiceField
)availabilities
: Availability (CharField
)
- class AKSubmission.forms.AKOwnerForm(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:
ModelForm
Form to create/edit AK owners
Form fields:
name
: Nickname (CharField
)institution
: Institution (CharField
)link
: Web Link (URLField
)event
: Event (ModelChoiceField
)
- class AKSubmission.forms.AKDurationForm(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:
ModelForm
Form to add an additional slot to a given AK
Form fields:
duration
: Duration (DecimalField
)ak
: AK (ModelChoiceField
)event
: Event (ModelChoiceField
)
- class AKSubmission.forms.AKOrgaMessageForm(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:
ModelForm
Form to create a confidential message to the organizers belonging to a given AK
Form fields:
ak
: AK (ModelChoiceField
)text
: Message text (CharField
)event
: Event (ModelChoiceField
)