diff --git a/app/public/cantusdata/helpers/chant_importer.py b/app/public/cantusdata/helpers/chant_importer.py index df48971a..969611a1 100644 --- a/app/public/cantusdata/helpers/chant_importer.py +++ b/app/public/cantusdata/helpers/chant_importer.py @@ -65,6 +65,7 @@ def add_chant(self, row): chant.genre = expandr.expand_genre(row["genre"].strip()) chant.mode = expandr.expand_mode(row["mode"].strip()) chant.differentia = expandr.expand_differentia(row["differentia"].strip()) + chant.differentiae_database = row["differentiae_database"].strip() chant.finalis = row["finalis"].strip() chant.incipit = row["incipit"].strip() chant.full_text = row["fulltext_standardized"].strip() diff --git a/app/public/cantusdata/migrations/0003_chant_differentiae_database.py b/app/public/cantusdata/migrations/0003_chant_differentiae_database.py new file mode 100644 index 00000000..02041a96 --- /dev/null +++ b/app/public/cantusdata/migrations/0003_chant_differentiae_database.py @@ -0,0 +1,18 @@ +# Generated by Django 4.2.7 on 2024-01-22 17:18 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('cantusdata', '0002_remove_chant_concordances_delete_concordance'), + ] + + operations = [ + migrations.AddField( + model_name='chant', + name='differentiae_database', + field=models.CharField(blank=True, max_length=255), + ), + ] diff --git a/app/public/cantusdata/models/chant.py b/app/public/cantusdata/models/chant.py index 62e384ed..d7317144 100644 --- a/app/public/cantusdata/models/chant.py +++ b/app/public/cantusdata/models/chant.py @@ -25,6 +25,7 @@ class Meta: lit_position = models.CharField(max_length=255, blank=True, null=True) mode = models.CharField(max_length=255, blank=True, null=True) differentia = models.CharField(max_length=255, blank=True, null=True) + differentiae_database = models.CharField(max_length=255, blank=True) finalis = models.CharField(max_length=255, blank=True, null=True) incipit = models.TextField(blank=True, null=True) full_text = models.TextField(blank=True, null=True)