608af9ce1fbe9cbf7c91dee1e0999f77b65b6dac
[wolnelektury.git] / src / catalogue / migrations / 0010_bookpopularity.py
1 from django.db import migrations, models
2 import django.db.models.deletion
3
4
5 class Migration(migrations.Migration):
6
7     dependencies = [
8         ('catalogue', '0009_auto_20160127_1019'),
9     ]
10
11     operations = [
12         migrations.CreateModel(
13             name='BookPopularity',
14             fields=[
15                 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
16                 ('count', models.IntegerField(default=0)),
17                 ('book', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, related_name='popularity', to='catalogue.Book')),
18             ],
19         ),
20     ]