Don't show banners on login/register pages.
[wolnelektury.git] / src / catalogue / migrations / 0010_bookpopularity.py
1 # This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later.
2 # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
3 #
4 from django.db import migrations, models
5 import django.db.models.deletion
6
7
8 class Migration(migrations.Migration):
9
10     dependencies = [
11         ('catalogue', '0009_auto_20160127_1019'),
12     ]
13
14     operations = [
15         migrations.CreateModel(
16             name='BookPopularity',
17             fields=[
18                 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
19                 ('count', models.IntegerField(default=0)),
20                 ('book', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, related_name='popularity', to='catalogue.Book')),
21             ],
22         ),
23     ]