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