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