Some preparation for upgrade.
[wolnelektury.git] / src / api / migrations / 0003_bookuserdata.py
1 from django.db import migrations, models
2 import django.db.models.deletion
3 from django.conf import settings
4
5
6 class Migration(migrations.Migration):
7
8     dependencies = [
9         migrations.swappable_dependency(settings.AUTH_USER_MODEL),
10         ('catalogue', '0024_auto_20180510_1407'),
11         ('api', '0002_auto_20151221_1225'),
12     ]
13
14     operations = [
15         migrations.CreateModel(
16             name='BookUserData',
17             fields=[
18                 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
19                 ('complete', models.BooleanField(default=False)),
20                 ('book', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='catalogue.Book')),
21                 ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
22             ],
23         ),
24     ]