ad hoc changes
[redakcja.git] / src / catalogue / migrations / 0020_auto_20201027_1416.py
1 # Generated by Django 3.0.4 on 2020-10-27 14:16
2
3 from django.db import migrations, models
4
5
6 class Migration(migrations.Migration):
7
8     dependencies = [
9         ('catalogue', '0019_auto_20201027_1331'),
10     ]
11
12     operations = [
13         migrations.CreateModel(
14             name='Epoch',
15             fields=[
16                 ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
17                 ('wikidata', models.CharField(blank=True, help_text='If you have a Wikidata ID, like "Q1337", enter it and save.', max_length=255)),
18                 ('name', models.CharField(max_length=255)),
19                 ('slug', models.SlugField(max_length=255, unique=True)),
20             ],
21             options={
22                 'abstract': False,
23             },
24         ),
25         migrations.CreateModel(
26             name='Genre',
27             fields=[
28                 ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
29                 ('wikidata', models.CharField(blank=True, help_text='If you have a Wikidata ID, like "Q1337", enter it and save.', max_length=255)),
30                 ('name', models.CharField(max_length=255)),
31                 ('slug', models.SlugField(max_length=255, unique=True)),
32             ],
33             options={
34                 'abstract': False,
35             },
36         ),
37         migrations.CreateModel(
38             name='Kind',
39             fields=[
40                 ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
41                 ('wikidata', models.CharField(blank=True, help_text='If you have a Wikidata ID, like "Q1337", enter it and save.', max_length=255)),
42                 ('name', models.CharField(max_length=255)),
43                 ('slug', models.SlugField(max_length=255, unique=True)),
44             ],
45             options={
46                 'abstract': False,
47             },
48         ),
49         migrations.AddField(
50             model_name='book',
51             name='epochs',
52             field=models.ManyToManyField(blank=True, to='catalogue.Epoch'),
53         ),
54         migrations.AddField(
55             model_name='book',
56             name='genres',
57             field=models.ManyToManyField(blank=True, to='catalogue.Genre'),
58         ),
59         migrations.AddField(
60             model_name='book',
61             name='kinds',
62             field=models.ManyToManyField(blank=True, to='catalogue.Kind'),
63         ),
64     ]