Day

Qualified name: intranet.apps.schedule.models.Day

class intranet.apps.schedule.models.Day(id, date, day_type, comment)[source]

Bases: Model

Parameters:

Relationship fields:

Parameters:

day_type (ForeignKey to DayType) – Day type (related name: day)

Methods

get_next_by_date

Finds next instance based on date.

get_previous_by_date

Finds previous instance based on date.

Attributes

comment

Type: CharField

date

Type: DateField

day_type

Type: ForeignKey to DayType

day_type_id

Internal field, use day_type instead.

end_time

Return time the school day ends

id

Type: AutoField

objects

start_time

Return time the school day begins

property end_time

Return time the school day ends

property start_time

Return time the school day begins