Day¶
Qualified name: intranet.apps.schedule.models.Day
- class intranet.apps.schedule.models.Day(id, date, day_type, comment)[source]¶
Bases:
Model
Relationship fields:
- Parameters:
day_type (
ForeignKey
toDayType
) – 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
toDayType
day_type_id
Internal field, use
day_type
instead.Return time the school day ends
id
Type:
AutoField
objects
Return time the school day begins
- property end_time¶
Return time the school day ends
- property start_time¶
Return time the school day begins