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