AssignmentForm¶
Qualified name: tin.apps.assignments.forms.AssignmentForm
- class AssignmentForm(course, *args, **kwargs)[source]¶
Bases:
ModelFormForm 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)submission_cap: Submission Cap (IntegerField)submission_cap_after_due: Submission Cap After Due (IntegerField)
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.
Save this form's self.instance object if commit=True.
Attributes
dueReturn 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.
- 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.