AssignmentForm¶
Qualified name: tin.apps.assignments.forms.AssignmentForm
- class AssignmentForm(course, *args, **kwargs)[source]¶
Bases:
ModelForm
Form fields:
name
: Name (CharField
)description
: Description (CharField
)markdown
: Use markdown? (BooleanField
)folder
: Folder (ModelChoiceField
)language
: Language (TypedChoiceField
)filename
: Filename (CharField
)venv
: Virtual environment (ModelChoiceField
)points_possible
: Points possible (DecimalField
)due
: Due (DateTimeField
)hidden
: Hide assignment from students? (BooleanField
)enable_grader_timeout
: Set a timeout for the grader? (BooleanField
)grader_timeout
: Grader timeout (seconds): (IntegerField
)grader_has_network_access
: Give the grader internet access? (BooleanField
)has_network_access
: Give submissions internet access? (BooleanField
)submission_limit_count
: Rate limit count (IntegerField
)submission_limit_interval
: Rate limit interval (minutes) (IntegerField
)submission_limit_cooldown
: Rate limit cooldown period (minutes) (IntegerField
)is_quiz
: Is this a quiz? (BooleanField
)quiz_action
: Quiz action (TypedChoiceField
)quiz_autocomplete_enabled
: Enable code autocompletion? (BooleanField
)quiz_description
: Quiz description (CharField
)quiz_description_markdown
: Use markdown? (BooleanField
)
Methods
This is the section that is NOT in a dropdown
This is used in templates to find which fields should be in a dropdown div.
Attributes
due
Return all media required to render the widgets on this form.
- 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.