From 945eac1969985192b4f628ec68ac3468643cb9cd Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Tue, 21 May 2024 14:51:22 +0200 Subject: [PATCH 1/1] genre-thema mapping --- src/catalogue/migrations/0052_genre_thema.py | 20 ++++++++++++++++++++ src/catalogue/models.py | 4 ++++ 2 files changed, 24 insertions(+) create mode 100644 src/catalogue/migrations/0052_genre_thema.py 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, ) -- 2.20.1