Day¶
Qualified name: intranet.apps.schedule.models.Day
- class intranet.apps.schedule.models.Day(id, date, day_type, comment)[source]¶
Bases:
ModelRelationship fields:
- Parameters:
day_type (
ForeignKeytoDayType) – Day type (related name:day)
Methods
get_next_by_dateFinds next instance based on
date.get_previous_by_dateFinds previous instance based on
date.Attributes
commentType:
CharFielddateType:
DateFieldday_typeType:
ForeignKeytoDayTypeday_type_idInternal field, use
day_typeinstead.Return time the school day ends
idType:
AutoFieldobjectsReturn time the school day begins
- property end_time¶
Return time the school day ends
- property start_time¶
Return time the school day begins