1 from django.db import migrations, models
2 import django.db.models.deletion
5 class Migration(migrations.Migration):
8 ('catalogue', '0009_auto_20160127_1019'),
12 migrations.CreateModel(
13 name='BookPopularity',
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')),