Quiz

Qualified name: tin.apps.assignments.models.Quiz

class Quiz(*args, **kwargs)[source]

Bases: Model

A 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 Assignment model

Parameters:

Relationship fields:

Parameters:

assignment (OneToOneField to Assignment) – Assignment (related name: quiz)

Methods

ended_for_student

get_absolute_url

get_action_display

Shows the label of the action.

issues_for_student

locked_for_student

open_for_student

Attributes

QUIZ_ACTIONS

action

Type: CharField

assignment

Type: OneToOneField to Assignment

assignment_id

Internal field, use assignment instead.

id

Type: BigAutoField

objects

exception DoesNotExist

Bases: ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: MultipleObjectsReturned