1 # -*- coding: utf-8 -*-
4 from django
.db
import models
, migrations
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')]
13 ('podcasts', '0029_episode_index_toplist'),
17 migrations
.CreateModel(
20 ('id', models
.AutoField(verbose_name
='ID', serialize
=False, auto_created
=True, primary_key
=True)),
21 ('title', models
.CharField(unique
=True, max_length
=1000)),
25 bases
=(models
.Model
,),
27 migrations
.CreateModel(
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')),
38 bases
=(models
.Model
,),
40 migrations
.CreateModel(
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')),
49 bases
=(models
.Model
,),
51 migrations
.AlterUniqueTogether(
53 unique_together
=set([('category', 'podcast')]),
55 migrations
.AlterModelOptions(
57 options
={'verbose_name': 'Category', 'verbose_name_plural': 'Categories'},
60 model_name
='category',
62 field
=models
.DateTimeField(default
=datetime
.datetime(2014, 9, 28, 13, 26, 28, 914038), auto_now_add
=True),
63 preserve_default
=False,
66 model_name
='category',
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',
74 field
=models
.ForeignKey(related_name
=b
'entries', to
='categories.Category'),
76 migrations
.AlterField(
77 model_name
='categoryentry',
79 field
=models
.DateTimeField(auto_now
=True),
81 migrations
.AlterIndexTogether(
83 index_together
=set([('modified',)]),
85 migrations
.AlterIndexTogether(
87 index_together
=set([('category', 'modified')]),
90 model_name
='category',
92 field
=models
.IntegerField(default
=0),
93 preserve_default
=False,
95 migrations
.AlterIndexTogether(
97 index_together
=set([('modified', 'num_entries')]),