Updates and fixes.
[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     ]