Update Celery to 4.3
[wolnelektury.git] / src / lesmianator / migrations / 0001_initial.py
1 from django.db import models, migrations
2 import django.db.models.deletion
3 import jsonfield.fields
4 from django.conf import settings
5
6
7 class Migration(migrations.Migration):
8
9     dependencies = [
10         migrations.swappable_dependency(settings.AUTH_USER_MODEL),
11         ('contenttypes', '0001_initial'),
12     ]
13
14     operations = [
15         migrations.CreateModel(
16             name='Continuations',
17             fields=[
18                 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
19                 ('pickle', models.FileField(upload_to='lesmianator', verbose_name='Continuations file')),
20                 ('object_id', models.PositiveIntegerField()),
21                 ('content_type', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='contenttypes.ContentType')),
22             ],
23             options={
24             },
25             bases=(models.Model,),
26         ),
27         migrations.CreateModel(
28             name='Poem',
29             fields=[
30                 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
31                 ('slug', models.SlugField(max_length=120, verbose_name='Slug')),
32                 ('text', models.TextField(verbose_name='text')),
33                 ('created_from', jsonfield.fields.JSONField(null=True, verbose_name='Additional information', blank=True)),
34                 ('created_at', models.DateTimeField(auto_now_add=True, verbose_name='creation date')),
35                 ('seen_at', models.DateTimeField(auto_now_add=True, verbose_name='last view date')),
36                 ('view_count', models.IntegerField(default=1, verbose_name='view count')),
37                 ('created_by', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL, null=True)),
38             ],
39             options={
40             },
41             bases=(models.Model,),
42         ),
43         migrations.AlterUniqueTogether(
44             name='continuations',
45             unique_together=set([('content_type', 'object_id')]),
46         ),
47     ]