1 # This file is part of Wolne Lektury, licensed under GNU Affero GPLv3 or later.
2 # Copyright © Fundacja Wolne Lektury. See NOTICE for more information.
4 from django.db import models, migrations
5 import django.db.models.deletion
8 class Migration(migrations.Migration):
11 ('catalogue', '0001_initial'),
15 migrations.CreateModel(
18 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
19 ('text', models.TextField(verbose_name='text')),
20 ('small', models.BooleanField(default=False, help_text='Make this cite display smaller.', verbose_name='small')),
21 ('vip', models.CharField(max_length=128, null=True, verbose_name='VIP', blank=True)),
22 ('link', models.URLField(verbose_name='link')),
23 ('sticky', models.BooleanField(default=False, help_text='Sticky cites will take precedense.', db_index=True, verbose_name='sticky')),
24 ('image', models.ImageField(help_text='Best image is exactly 975px wide and weights under 100kB.', upload_to='social/cite', null=True, verbose_name='image', blank=True)),
25 ('image_shift', models.IntegerField(help_text='Vertical shift, in percents. 0 means top, 100 is bottom. Default is 50%.', null=True, verbose_name='shift', blank=True)),
26 ('image_title', models.CharField(max_length=255, null=True, verbose_name='Title', blank=True)),
27 ('image_author', models.CharField(max_length=255, null=True, verbose_name='author', blank=True)),
28 ('image_link', models.URLField(null=True, verbose_name='link', blank=True)),
29 ('image_license', models.CharField(max_length=255, null=True, verbose_name='license name', blank=True)),
30 ('image_license_link', models.URLField(null=True, verbose_name='license link', blank=True)),
31 ('book', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, verbose_name='book', blank=True, to='catalogue.Book', null=True)),
34 'ordering': ('vip', 'text'),
35 'verbose_name': 'cite',
36 'verbose_name_plural': 'cites',
38 bases=(models.Model,),