4d20304bc3c85a1c1fe624ffb65d00ae66a038c1
[wolnelektury.git] / apps / api / migrations / 0001_initial.py
1 # -*- coding: utf-8 -*-
2 from __future__ import unicode_literals
3
4 from django.db import models, migrations
5
6
7 class Migration(migrations.Migration):
8
9     dependencies = [
10         ('contenttypes', '0001_initial'),
11     ]
12
13     operations = [
14         migrations.CreateModel(
15             name='Deleted',
16             fields=[
17                 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
18                 ('object_id', models.IntegerField()),
19                 ('slug', models.SlugField(max_length=120, verbose_name='Slug', blank=True)),
20                 ('category', models.CharField(db_index=True, max_length=64, null=True, blank=True)),
21                 ('created_at', models.DateTimeField(editable=False, db_index=True)),
22                 ('deleted_at', models.DateTimeField(auto_now_add=True, db_index=True)),
23                 ('content_type', models.ForeignKey(to='contenttypes.ContentType')),
24             ],
25             options={
26             },
27             bases=(models.Model,),
28         ),
29         migrations.AlterUniqueTogether(
30             name='deleted',
31             unique_together=set([('content_type', 'object_id')]),
32         ),
33     ]