Office Model - DDMAL/CantusDB GitHub Wiki
Office (code) is a model in the main_app app. It inherits from BaseModel.
Offices are associated with individual chants. Office objects represent liturgical events that occur at set times during the day; any particular chant is sung on a specific day of the year at a specific office on that day. For more information on liturgical offices, refer to the Wikipedia article on canonical hours.
Views
Office has a Detail view and a List view.
Fields
name: a short string: a one- or two-character abbreviation used to identify a specific office (for example,Crepresents Compline whileV2represents Second Vespers.description: a string: the name of the office spelled in full (e.g.Compline,Second Vespers), or a description/clarification of thenamefield (for example, the description of the office with nameADisUnknown Office (à déterminer))- inherited from BaseModel:
date_createddate_updatedcreated_bylast_updated_by
Methods
- inherited from BaseModel:
save()display_name(property)get_absolute_url()get_verbose_name()get_verbose_name_plural()get_fields_and_properties()