1 # -*- coding: utf-8 -*-
2 from __future__ import unicode_literals
4 from django.db import models, migrations
5 import jsonfield.fields
6 from django.conf import settings
9 class Migration(migrations.Migration):
12 migrations.swappable_dependency(settings.AUTH_USER_MODEL),
13 ('contenttypes', '0001_initial'),
17 migrations.CreateModel(
20 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
21 ('pickle', models.FileField(upload_to=b'lesmianator', verbose_name='Continuations file')),
22 ('object_id', models.PositiveIntegerField()),
23 ('content_type', models.ForeignKey(to='contenttypes.ContentType')),
27 bases=(models.Model,),
29 migrations.CreateModel(
32 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
33 ('slug', models.SlugField(max_length=120, verbose_name='Slug')),
34 ('text', models.TextField(verbose_name='text')),
35 ('created_from', jsonfield.fields.JSONField(null=True, verbose_name='Additional information', blank=True)),
36 ('created_at', models.DateTimeField(auto_now_add=True, verbose_name='creation date')),
37 ('seen_at', models.DateTimeField(auto_now_add=True, verbose_name='last view date')),
38 ('view_count', models.IntegerField(default=1, verbose_name='view count')),
39 ('created_by', models.ForeignKey(to=settings.AUTH_USER_MODEL, null=True)),
43 bases=(models.Model,),
45 migrations.AlterUniqueTogether(
47 unique_together=set([('content_type', 'object_id')]),