1 # This file is part of Wolne Lektury, licensed under GNU Affero GPLv3 or later.
2 # Copyright © Fundacja Wolne Lektury. See NOTICE for more information.
4 from django.db import models, migrations
5 import django.db.models.deletion
8 class Migration(migrations.Migration):
11 ('contenttypes', '0001_initial'),
15 migrations.CreateModel(
18 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
19 ('object_id', models.IntegerField()),
20 ('slug', models.SlugField(max_length=120, verbose_name='Slug', blank=True)),
21 ('category', models.CharField(db_index=True, max_length=64, null=True, blank=True)),
22 ('created_at', models.DateTimeField(editable=False, db_index=True)),
23 ('deleted_at', models.DateTimeField(auto_now_add=True, db_index=True)),
24 ('content_type', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='contenttypes.ContentType')),
28 bases=(models.Model,),
30 migrations.AlterUniqueTogether(
32 unique_together=set([('content_type', 'object_id')]),