Add audience and thema data to catalogue. Also: nicer cover view.
[redakcja.git] / src / catalogue / migrations / 0048_audience_alter_thema_options_thema_plural_thema_slug_and_more.py
1 # Generated by Django 4.1.9 on 2023-07-25 12:49
2
3 from django.db import migrations, models
4
5
6 class Migration(migrations.Migration):
7
8     dependencies = [
9         ("catalogue", "0047_author_woblink"),
10     ]
11
12     operations = [
13         migrations.CreateModel(
14             name="Audience",
15             fields=[
16                 (
17                     "id",
18                     models.AutoField(
19                         auto_created=True,
20                         primary_key=True,
21                         serialize=False,
22                         verbose_name="ID",
23                     ),
24                 ),
25                 (
26                     "code",
27                     models.CharField(
28                         help_text="Techniczny identifyikator. W miarę możliwości nie należy zmieniać.",
29                         max_length=128,
30                         unique=True,
31                     ),
32                 ),
33                 (
34                     "name",
35                     models.CharField(
36                         help_text="W formie: „dla … (kogo?)”", max_length=1024
37                     ),
38                 ),
39                 (
40                     "slug",
41                     models.SlugField(
42                         blank=True,
43                         help_text="Element adresu na WL, w postaci: /dla/slug/. Można zmieniać.",
44                         max_length=255,
45                         null=True,
46                         unique=True,
47                     ),
48                 ),
49                 ("description", models.TextField(blank=True)),
50                 (
51                     "thema",
52                     models.CharField(
53                         blank=True,
54                         help_text="Odpowiadający kwalifikator Thema.",
55                         max_length=32,
56                     ),
57                 ),
58             ],
59             options={
60                 "ordering": ("code",),
61             },
62         ),
63         migrations.AlterModelOptions(
64             name="thema",
65             options={"ordering": ("code",), "verbose_name_plural": "Thema"},
66         ),
67         migrations.AddField(
68             model_name="thema",
69             name="plural",
70             field=models.CharField(
71                 blank=True, max_length=255, verbose_name="liczba mnoga"
72             ),
73         ),
74         migrations.AddField(
75             model_name="thema",
76             name="slug",
77             field=models.SlugField(
78                 blank=True,
79                 help_text="Element adresu na WL, w postaci: /tag/slug/. Można zmieniać.",
80                 max_length=255,
81                 null=True,
82                 unique=True,
83             ),
84         ),
85         migrations.AddField(
86             model_name="thema",
87             name="usable_as_main",
88             field=models.BooleanField(default=False),
89         ),
90         migrations.AddField(
91             model_name="thema",
92             name="woblink_category",
93             field=models.IntegerField(blank=True, null=True),
94         ),
95         migrations.AlterField(
96             model_name="genre",
97             name="plural",
98             field=models.CharField(
99                 blank=True, max_length=255, verbose_name="liczba mnoga"
100             ),
101         ),
102     ]