Catalogue: link document.
[redakcja.git] / src / catalogue / migrations / 0008_auto_20200410_1741.py
1 # Generated by Django 3.0.4 on 2020-04-10 17:41
2
3 from django.db import migrations, models
4
5
6 class Migration(migrations.Migration):
7
8     dependencies = [
9         ('catalogue', '0007_auto_20200322_2326'),
10     ]
11
12     operations = [
13         migrations.RenameField(
14             model_name='author',
15             old_name='name',
16             new_name='last_name',
17         ),
18         migrations.RemoveField(
19             model_name='book',
20             name='translator',
21         ),
22         migrations.RemoveField(
23             model_name='book',
24             name='uri',
25         ),
26         migrations.AddField(
27             model_name='author',
28             name='first_name',
29             field=models.CharField(blank=True, max_length=255),
30         ),
31         migrations.AddField(
32             model_name='author',
33             name='notes',
34             field=models.TextField(blank=True),
35         ),
36         migrations.AddField(
37             model_name='author',
38             name='priority',
39             field=models.PositiveSmallIntegerField(choices=[(0, 'Low'), (1, 'Medium'), (2, 'High')], default=0),
40         ),
41         migrations.AddField(
42             model_name='author',
43             name='slug',
44             field=models.SlugField(blank=True, null=True, unique=True),
45         ),
46         migrations.AddField(
47             model_name='author',
48             name='wikidata',
49             field=models.CharField(blank=True, max_length=255),
50         ),
51         migrations.AddField(
52             model_name='book',
53             name='slug',
54             field=models.SlugField(blank=True, max_length=255, null=True, unique=True),
55         ),
56         migrations.AddField(
57             model_name='book',
58             name='translators',
59             field=models.ManyToManyField(blank=True, related_name='translated_book_set', related_query_name='translated_book', to='catalogue.Author'),
60         ),
61         migrations.AddField(
62             model_name='book',
63             name='wikidata',
64             field=models.CharField(blank=True, max_length=255),
65         ),
66         migrations.AlterField(
67             model_name='book',
68             name='authors',
69             field=models.ManyToManyField(blank=True, to='catalogue.Author'),
70         ),
71     ]