1 # -*- coding: utf-8 -*-
2 from __future__ import unicode_literals
4 from django.db import models, migrations
7 class Migration(migrations.Migration):
13 migrations.CreateModel(
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)),
28 bases=(models.Model,),
30 migrations.CreateModel(
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)),
45 bases=(models.Model,),
50 field=models.ForeignKey(to='poetry.Poet', on_delete=models.CASCADE),
51 preserve_default=True,