--- /dev/null
+# -*- coding: utf-8 -*-
+from __future__ import unicode_literals
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('catalogue', '0021_auto_20171222_1404'),
+ ]
+
+ operations = [
+ migrations.AlterField(
+ model_name='bookpopularity',
+ name='count',
+ field=models.IntegerField(default=0, db_index=True),
+ ),
+ ]
class BookPopularity(models.Model):
book = models.OneToOneField(Book, related_name='popularity')
- count = models.IntegerField(default=0)
+ count = models.IntegerField(default=0, db_index=True)