Skip to content

Office Model

Jacob deGroot-Maggetti edited this page Oct 11, 2022 · 12 revisions

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, C represents Compline while V2 represents Second Vespers.
  • description: a string: the name of the office spelled in full (e.g. Compline, Second Vespers), or a description/clarification of the name field (for example, the description of the office with name AD is Unknown Office (à déterminer))
  • inherited from BaseModel:
    • date_created
    • date_updated
    • created_by
    • last_updated_by

Methods

  • inherited from BaseModel:
    • save()
    • display_name (property)
    • get_absolute_url()
    • get_verbose_name()
    • get_verbose_name_plural()
    • get_fields_and_properties()