Skip to content

Commit

Permalink
Add differentiae database to chant model
Browse files Browse the repository at this point in the history
  • Loading branch information
dchiller committed Jan 22, 2024
1 parent 7e066c9 commit f69c517
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/public/cantusdata/helpers/chant_importer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
Original file line number Diff line number Diff line change
@@ -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),
),
]
1 change: 1 addition & 0 deletions app/public/cantusdata/models/chant.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f69c517

Please sign in to comment.