Convert to museum of first edition.
[turniej.git] / src / poetry / 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='Poem',
15             fields=[
16                 ('id', models.AutoField(verbose_name='ID', auto_created=True, serialize=False, primary_key=True)),
17                 ('slug', models.SlugField()),
18                 ('title', models.CharField(null=True, max_length=255, blank=True)),
19                 ('text', models.TextField()),
20                 ('created_at', models.DateTimeField(db_index=True, auto_now_add=True)),
21                 ('seen_at', models.DateTimeField(auto_now_add=True)),
22                 ('view_count', models.IntegerField(default=1)),
23                 ('for_contest', models.BooleanField(default=False)),
24                 ('in_contest', models.BooleanField(default=False)),
25             ],
26             options={
27             },
28             bases=(models.Model,),
29         ),
30         migrations.CreateModel(
31             name='Poet',
32             fields=[
33                 ('id', models.AutoField(verbose_name='ID', auto_created=True, serialize=False, primary_key=True)),
34                 ('name', models.CharField(max_length=50)),
35                 ('path', models.CharField(max_length=255)),
36                 ('slug', models.SlugField(unique=True)),
37                 ('author', models.CharField(max_length=128, blank=True)),
38                 ('url', models.CharField(max_length=255, blank=True)),
39                 ('description', models.TextField(blank=True)),
40                 ('first_line_title', models.BooleanField(default=False)),
41                 ('skip_first_lines', models.IntegerField(default=0)),
42             ],
43             options={
44             },
45             bases=(models.Model,),
46         ),
47         migrations.AddField(
48             model_name='poem',
49             name='poet',
50             field=models.ForeignKey(to='poetry.Poet', on_delete=models.CASCADE),
51             preserve_default=True,
52         ),
53     ]