genre-thema mapping
authorRadek Czajka <rczajka@rczajka.pl>
Tue, 21 May 2024 12:51:22 +0000 (14:51 +0200)
committerRadek Czajka <rczajka@rczajka.pl>
Tue, 21 May 2024 12:51:22 +0000 (14:51 +0200)
src/catalogue/migrations/0052_genre_thema.py [new file with mode: 0644]
src/catalogue/models.py

diff --git a/src/catalogue/migrations/0052_genre_thema.py b/src/catalogue/migrations/0052_genre_thema.py
new file mode 100644 (file)
index 0000000..cc4fc8c
--- /dev/null
@@ -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
+            ),
+        ),
+    ]
index e2d737a..04bbf85 100644 (file)
@@ -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,
     )