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
7 class Migration(migrations.Migration):
13 migrations.CreateModel(
16 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
17 ('name', models.CharField(max_length=50, verbose_name='name', db_index=True)),
18 ('slug', models.SlugField(unique=True, max_length=120, verbose_name='Slug')),
19 ('sort_key', models.CharField(max_length=120, verbose_name='Sort key', db_index=True)),
20 ('description', models.TextField(verbose_name='Description', blank=True)),
21 ('death', models.IntegerField(null=True, verbose_name='Year of death', blank=True)),
22 ('gazeta_link', models.CharField(max_length=240, blank=True)),
23 ('wiki_link', models.CharField(max_length=240, blank=True)),
26 'ordering': ('sort_key',),
27 'verbose_name': 'author',
28 'verbose_name_plural': 'authors',
30 bases=(models.Model,),
32 migrations.CreateModel(
35 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
36 ('title', models.CharField(max_length=120, verbose_name='Title')),
37 ('author', models.CharField(max_length=120, verbose_name='author')),
38 ('pd', models.IntegerField(null=True, verbose_name='Goes to public domain', blank=True)),
39 ('slug', models.SlugField(unique=True, max_length=120, verbose_name='Slug')),
40 ('translator', models.TextField(verbose_name='Translator', blank=True)),
43 'ordering': ('title',),
44 'verbose_name': 'Book stub',
45 'verbose_name_plural': 'Book stubs',
47 bases=(models.Model,),