Test fixes.
[wolnelektury.git] / src / api / migrations / 0001_initial.py
1 # This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later.
2 # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
3 #
4 from django.db import models, migrations
5 import django.db.models.deletion
6
7
8 class Migration(migrations.Migration):
9
10     dependencies = [
11         ('contenttypes', '0001_initial'),
12     ]
13
14     operations = [
15         migrations.CreateModel(
16             name='Deleted',
17             fields=[
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')),
25             ],
26             options={
27             },
28             bases=(models.Model,),
29         ),
30         migrations.AlterUniqueTogether(
31             name='deleted',
32             unique_together=set([('content_type', 'object_id')]),
33         ),
34     ]