Period

Qualified name: tin.apps.courses.models.Period

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

Bases: Model

A Period, or a Block

e.g. Period 7

Parameters:

Relationship fields:

Parameters:

Reverse relationships:

Parameters:

moss_results (Reverse ForeignKey from MossResult) – All moss results of this period (related name of period)

Methods

get_absolute_url

get_next_by_created

Finds next instance based on created.

get_previous_by_created

Finds previous instance based on created.

Attributes

course

Type: ForeignKey to Course

course_id

Internal field, use course instead.

created

Type: DateTimeField

id

Type: BigAutoField

moss_results

Type: Reverse ForeignKey from MossResult

name

Type: CharField

objects

students

Type: ManyToManyField to User

teacher

Type: ForeignKey to User

teacher_id

Internal field, use teacher instead.

exception DoesNotExist

Bases: ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: MultipleObjectsReturned