From: Radek Czajka Date: Tue, 21 May 2024 12:51:22 +0000 (+0200) Subject: genre-thema mapping X-Git-Url: https://git.mdrn.pl/redakcja.git/commitdiff_plain/945eac1969985192b4f628ec68ac3468643cb9cd?ds=inline genre-thema mapping --- diff --git a/src/catalogue/migrations/0052_genre_thema.py b/src/catalogue/migrations/0052_genre_thema.py new file mode 100644 index 00000000..cc4fc8c6 --- /dev/null +++ b/src/catalogue/migrations/0052_genre_thema.py @@ -0,0 +1,20 @@ +# Generated by Django 4.1.9 on 2024-05-21 14:46 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ("catalogue", "0051_book_plwiki"), + ] + + operations = [ + migrations.AddField( + model_name="genre", + name="thema", + field=models.CharField( + blank=True, help_text="Odpowiadający kwalifikator Thema.", max_length=32 + ), + ), + ] diff --git a/src/catalogue/models.py b/src/catalogue/models.py index e2d737a2..04bbf851 100644 --- a/src/catalogue/models.py +++ b/src/catalogue/models.py @@ -230,6 +230,10 @@ class Epoch(Category): class Genre(Category): + thema = models.CharField( + max_length=32, blank=True, + help_text='Odpowiadający kwalifikator Thema.' + ) plural = models.CharField( 'liczba mnoga', max_length=255, blank=True, )