Allow multiple sources.
[redakcja.git] / src / catalogue / migrations / 0012_collection.py
1 # Generated by Django 3.0.4 on 2020-04-15 17:15
2
3 from django.db import migrations, models
4
5
6 class Migration(migrations.Migration):
7
8     dependencies = [
9         ('catalogue', '0011_auto_20200415_1517'),
10     ]
11
12     operations = [
13         migrations.CreateModel(
14             name='Collection',
15             fields=[
16                 ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
17                 ('name', models.CharField(max_length=255)),
18                 ('slug', models.SlugField(max_length=255, unique=True)),
19                 ('authors', models.ManyToManyField(blank=True, to='catalogue.Author')),
20                 ('books', models.ManyToManyField(blank=True, to='catalogue.Book')),
21             ],
22         ),
23     ]