1 # This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later.
2 # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
4 from django.db import models, migrations
5 import django.db.models.deletion
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='lesmianator', verbose_name='Continuations file')),
22 ('object_id', models.PositiveIntegerField()),
23 ('content_type', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, 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', models.TextField(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(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL, null=True)),
43 bases=(models.Model,),
45 migrations.AlterUniqueTogether(
47 unique_together=set([('content_type', 'object_id')]),