CooldownPeriod

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

class CooldownPeriod(id, assignment, student, start_time)[source]

Bases: Model

Parameters:

Relationship fields:

Parameters:

Methods

exists

get_next_by_start_time

Finds next instance based on start_time.

get_previous_by_start_time

Finds previous instance based on start_time.

get_time_to_end

Attributes

assignment

Type: ForeignKey to Assignment

assignment_id

Internal field, use assignment instead.

id

Type: BigAutoField

objects

start_time

Type: DateTimeField

student

Type: ForeignKey to User

student_id

Internal field, use student instead.

exception DoesNotExist

Bases: ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: MultipleObjectsReturned