1 from django.db import models, migrations
2 import django.db.models.deletion
3 from django.conf import settings
6 class Migration(migrations.Migration):
9 migrations.swappable_dependency(settings.AUTH_USER_MODEL),
10 ('contenttypes', '0001_initial'),
14 migrations.CreateModel(
17 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
18 ('pickle', models.FileField(upload_to='lesmianator', verbose_name='Continuations file')),
19 ('object_id', models.PositiveIntegerField()),
20 ('content_type', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='contenttypes.ContentType')),
24 bases=(models.Model,),
26 migrations.CreateModel(
29 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
30 ('slug', models.SlugField(max_length=120, verbose_name='Slug')),
31 ('text', models.TextField(verbose_name='text')),
32 ('created_from', models.TextField(null=True, verbose_name='Additional information', blank=True)),
33 ('created_at', models.DateTimeField(auto_now_add=True, verbose_name='creation date')),
34 ('seen_at', models.DateTimeField(auto_now_add=True, verbose_name='last view date')),
35 ('view_count', models.IntegerField(default=1, verbose_name='view count')),
36 ('created_by', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL, null=True)),
40 bases=(models.Model,),
42 migrations.AlterUniqueTogether(
44 unique_together=set([('content_type', 'object_id')]),