update librarian
[wolnelektury.git] / src / pdcounter / migrations / 0001_initial.py
1 # -*- coding: utf-8 -*-
2 from __future__ import unicode_literals
3
4 from django.db import models, migrations
5
6
7 class Migration(migrations.Migration):
8
9     dependencies = [
10     ]
11
12     operations = [
13         migrations.CreateModel(
14             name='Author',
15             fields=[
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)),
24             ],
25             options={
26                 'ordering': ('sort_key',),
27                 'verbose_name': 'author',
28                 'verbose_name_plural': 'authors',
29             },
30             bases=(models.Model,),
31         ),
32         migrations.CreateModel(
33             name='BookStub',
34             fields=[
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)),
41             ],
42             options={
43                 'ordering': ('title',),
44                 'verbose_name': 'Book stub',
45                 'verbose_name_plural': 'Book stubs',
46             },
47             bases=(models.Model,),
48         ),
49     ]