1 from django.db import models, migrations
2 import django.db.models.deletion
3 import jsonfield.fields
4 from django.conf import settings
7 class Migration(migrations.Migration):
10 migrations.swappable_dependency(settings.AUTH_USER_MODEL),
11 ('contenttypes', '0001_initial'),
15 migrations.CreateModel(
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')),
25 bases=(models.Model,),
27 migrations.CreateModel(
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)),
41 bases=(models.Model,),
43 migrations.AlterUniqueTogether(
45 unique_together=set([('content_type', 'object_id')]),