Skip to content

Century Model

Jacob deGroot-Maggetti edited this page Sep 19, 2022 · 16 revisions

Century (code) is a model in the main_app app. It inherits from BaseModel.

Century objects are associated with sources. A century object represents the period of time during which a manuscript was created.

There are no views associated with Century objects. Century objects were present in OldCantus, and seem to have been used to ensure that sources' century fields are standardized throughout the database (whereas they might not be standardized if they are represented as text fields). Data on when a manuscript was created is also stored in sources' date fields.

Fields

  • name: a string. Examples include '09th century', '9th century (875-900)', '10th century', '10th century (1st half)', '10th century (900-925)', and so on.
  • 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()