1 # -*- coding: utf-8 -*-
4 from django
.db
import models
, migrations
8 class Migration(migrations
.Migration
):
11 ('categories', '0001_initial'),
12 ('categories', '0002_auto_20140927_1501'),
13 ('categories', '0003_category_num_entries'),
14 ('categories', '0004_auto_20140927_1540')]
17 ('podcasts', '0029_episode_index_toplist'),
21 migrations
.CreateModel(
24 ('id', models
.AutoField(
29 ('title', models
.CharField(
35 bases
=(models
.Model
,),
37 migrations
.CreateModel(
40 ('id', models
.AutoField(
45 ('created', models
.DateTimeField(auto_now_add
=True)),
46 ('modified', models
.DateTimeField(
49 ('category', models
.ForeignKey(
50 to
='categories.Category',
51 on_delete
=models
.CASCADE
,
53 ('podcast', models
.ForeignKey(
54 to
='podcasts.Podcast',
55 on_delete
=models
.CASCADE
,
60 bases
=(models
.Model
,),
62 migrations
.CreateModel(
65 ('id', models
.AutoField(
70 ('tag', models
.SlugField(unique
=True)),
71 ('category', models
.ForeignKey(
73 to
='categories.Category',
74 on_delete
=models
.CASCADE
,
79 bases
=(models
.Model
,),
81 migrations
.AlterUniqueTogether(
83 unique_together
=set([('category', 'podcast')]),
85 migrations
.AlterModelOptions(
88 'verbose_name': 'Category',
89 'verbose_name_plural': 'Categories'
93 model_name
='category',
95 field
=models
.DateTimeField(
96 default
=datetime
.datetime(2014, 9, 28, 13, 26, 28, 914038),
98 preserve_default
=False,
101 model_name
='category',
103 field
=models
.DateTimeField(
104 default
=datetime
.datetime(2014, 9, 28, 13, 26, 28, 914095),
106 preserve_default
=False,
108 migrations
.AlterField(
109 model_name
='categoryentry',
111 field
=models
.ForeignKey(
112 related_name
='entries',
113 to
='categories.Category',
114 on_delete
=models
.CASCADE
,
117 migrations
.AlterField(
118 model_name
='categoryentry',
120 field
=models
.DateTimeField(auto_now
=True),
122 migrations
.AlterIndexTogether(
124 index_together
=set([('modified',)]),
126 migrations
.AlterIndexTogether(
127 name
='categoryentry',
128 index_together
=set([('category', 'modified')]),
131 model_name
='category',
133 field
=models
.IntegerField(default
=0),
134 preserve_default
=False,
136 migrations
.AlterIndexTogether(
138 index_together
=set([('modified', 'num_entries')]),