Quiz¶
Qualified name: tin.apps.assignments.models.Quiz
- class Quiz(*args, **kwargs)[source]¶
Bases:
ModelA Quiz Model
Warning
This model is deprecated and will be removed in the future. It is kept for backwards compatibility with existing data. All fields and methods have been migrated to the
Assignmentmodel- Parameters:
id (BigAutoField) – Primary key: ID
action (CharField) – Action
Relationship fields:
- Parameters:
assignment (
OneToOneFieldtoAssignment) – Assignment (related name:quiz)
Methods
ended_for_studentget_absolute_urlget_action_displayShows the label of the
action.issues_for_studentlocked_for_studentopen_for_studentAttributes
QUIZ_ACTIONSactionType:
CharFieldassignmentType:
OneToOneFieldtoAssignmentassignment_idInternal field, use
assignmentinstead.idType:
BigAutoFieldobjects- exception DoesNotExist¶
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned¶
Bases:
MultipleObjectsReturned