AssignmentForm

Qualified name: tin.apps.assignments.forms.AssignmentForm

class AssignmentForm(course, *args, **kwargs)[source]

Bases: ModelForm

Form fields:

Methods

get_main_section

This is the section that is NOT in a dropdown

get_sections

This is used in templates to find which fields should be in a dropdown div.

save

Save this form's self.instance object if commit=True.

Attributes

due

media

Return all media required to render the widgets on this form.

__init__(course, *args, **kwargs)[source]
get_main_section() dict[str, str | tuple[str, ...]][source]

This is the section that is NOT in a dropdown

get_sections() Iterable[dict[str, str | tuple[str, ...] | bool]][source]

This is used in templates to find which fields should be in a dropdown div.

property media

Return all media required to render the widgets on this form.

save() Assignment[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.