Run 2to3-3.4
[mygpo.git] / mygpo / categories / migrations / 0001_initial.py
blobf86eabaa1e86f5c794a435d93f893adbbad4d4d1
1 # -*- coding: utf-8 -*-
4 from django.db import models, migrations
5 import datetime
8 class Migration(migrations.Migration):
10 replaces = [(b'categories', '0001_initial'), (b'categories', '0002_auto_20140927_1501'), (b'categories', '0003_category_num_entries'), (b'categories', '0004_auto_20140927_1540')]
12 dependencies = [
13 ('podcasts', '0029_episode_index_toplist'),
16 operations = [
17 migrations.CreateModel(
18 name='Category',
19 fields=[
20 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
21 ('title', models.CharField(unique=True, max_length=1000)),
23 options={
25 bases=(models.Model,),
27 migrations.CreateModel(
28 name='CategoryEntry',
29 fields=[
30 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
31 ('created', models.DateTimeField(auto_now_add=True)),
32 ('modified', models.DateTimeField(auto_now=True, db_index=True)),
33 ('category', models.ForeignKey(to='categories.Category')),
34 ('podcast', models.ForeignKey(to='podcasts.Podcast')),
36 options={
38 bases=(models.Model,),
40 migrations.CreateModel(
41 name='CategoryTag',
42 fields=[
43 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
44 ('tag', models.SlugField(unique=True)),
45 ('category', models.ForeignKey(related_name=b'tags', to='categories.Category')),
47 options={
49 bases=(models.Model,),
51 migrations.AlterUniqueTogether(
52 name='categoryentry',
53 unique_together=set([('category', 'podcast')]),
55 migrations.AlterModelOptions(
56 name='category',
57 options={'verbose_name': 'Category', 'verbose_name_plural': 'Categories'},
59 migrations.AddField(
60 model_name='category',
61 name='created',
62 field=models.DateTimeField(default=datetime.datetime(2014, 9, 28, 13, 26, 28, 914038), auto_now_add=True),
63 preserve_default=False,
65 migrations.AddField(
66 model_name='category',
67 name='modified',
68 field=models.DateTimeField(default=datetime.datetime(2014, 9, 28, 13, 26, 28, 914095), auto_now=True),
69 preserve_default=False,
71 migrations.AlterField(
72 model_name='categoryentry',
73 name='category',
74 field=models.ForeignKey(related_name=b'entries', to='categories.Category'),
76 migrations.AlterField(
77 model_name='categoryentry',
78 name='modified',
79 field=models.DateTimeField(auto_now=True),
81 migrations.AlterIndexTogether(
82 name='category',
83 index_together=set([('modified',)]),
85 migrations.AlterIndexTogether(
86 name='categoryentry',
87 index_together=set([('category', 'modified')]),
89 migrations.AddField(
90 model_name='category',
91 name='num_entries',
92 field=models.IntegerField(default=0),
93 preserve_default=False,
95 migrations.AlterIndexTogether(
96 name='category',
97 index_together=set([('modified', 'num_entries')]),