DayType

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

class intranet.apps.schedule.models.DayType(id, name, special)[source]

Bases: Model

Parameters:

Relationship fields:

Parameters:

Reverse relationships:

Parameters:

day (Reverse ForeignKey from Day) – All days of this day type (related name of day_type)

Methods

Attributes

blocks

Type: ManyToManyField to Block

class_name

codenames

Type: ManyToManyField to CodeName

day_set

Type: Reverse ForeignKey from Day

end_time

Returns Time the school day ends.

id

Type: AutoField

name

Type: CharField

no_school

Returns True if no blocks are scheduled.

objects

special

Type: BooleanField

start_time

Returns Time the school day begins.

property end_time: Time

Returns Time the school day ends. Returns None if there are no blocks.

Returns:

The Time at which the school day ends, or None if there are no blocks.

property no_school: bool

Returns True if no blocks are scheduled.

Returns:

Whether there are no blocks scheduled.

property start_time: Time

Returns Time the school day begins. Returns None if there are no blocks.

Returns:

The Time at which the school day starts, or None if there are no blocks.