Skip to content

Provenance Model

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

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

Provenance objects are associated with sources. A provenance object represents the geographic area from which a source came.

Occasionally, more detail is required to specify a source's provenance. In situations where existing Provenance objects are too simple or too coarse-grained to accurately represent a source's provenance, further information is stored in a source's .provenance_notes field.

Provenance objects were present in OldCantus, where they were used to ensure that sources' provenance fields are standardized throughout the database (whereas they might not be standardized if had they been represented as text fields).

Views

Provenances have a single view: the Provenance Detail View.

Fields

  • name: a string, representing the name of the place from which a source came. Examples include York, Trier region, Lubiąż
  • 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()