Skip to content

Chant model

Jacob deGroot-Maggetti edited this page Sep 13, 2022 · 18 revisions

The Chant model is a model in the main_app app. It is defined in /main_app/models/chant.py.

Chant inherits from the abstract BaseChant model: both the Chant model and the Sequence model must have the same fields, or else errors will occur when a user searches for chants/sequences in the database. Thus, all fields, properties and attributes for both Chants and Sequences are declared in BaseChant in order to keep the two models' fields harmonized, even when only one of the two models uses a particular field.