1 from django.db import models, migrations
2 import django.db.models.deletion
5 class Migration(migrations.Migration):
8 ('catalogue', '0001_initial'),
12 migrations.CreateModel(
15 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
16 ('text', models.TextField(verbose_name='text')),
17 ('small', models.BooleanField(default=False, help_text='Make this cite display smaller.', verbose_name='small')),
18 ('vip', models.CharField(max_length=128, null=True, verbose_name='VIP', blank=True)),
19 ('link', models.URLField(verbose_name='link')),
20 ('sticky', models.BooleanField(default=False, help_text='Sticky cites will take precedense.', db_index=True, verbose_name='sticky')),
21 ('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)),
22 ('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)),
23 ('image_title', models.CharField(max_length=255, null=True, verbose_name='Title', blank=True)),
24 ('image_author', models.CharField(max_length=255, null=True, verbose_name='author', blank=True)),
25 ('image_link', models.URLField(null=True, verbose_name='link', blank=True)),
26 ('image_license', models.CharField(max_length=255, null=True, verbose_name='license name', blank=True)),
27 ('image_license_link', models.URLField(null=True, verbose_name='license link', blank=True)),
28 ('book', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, verbose_name='book', blank=True, to='catalogue.Book', null=True)),
31 'ordering': ('vip', 'text'),
32 'verbose_name': 'cite',
33 'verbose_name_plural': 'cites',
35 bases=(models.Model,),