Run 2to3-3.4
[mygpo.git] / mygpo / podcasts / migrations / 0001_initial.py
blobe2e621e1ee2b7f717174992564cb848a18fec4b2
1 # encoding: utf8
4 from django.db import models, migrations
5 import uuidfield.fields
8 class Migration(migrations.Migration):
10 dependencies = [
11 ('contenttypes', '__first__'),
14 operations = [
15 migrations.CreateModel(
16 name='PodcastGroup',
17 fields=[
18 ('id', uuidfield.fields.UUIDField(max_length=32, serialize=False, primary_key=True)),
19 ('title', models.CharField(max_length=1000, blank=True)),
20 ('subtitle', models.CharField(max_length=1000, blank=True)),
22 options={
23 'abstract': False,
25 bases=(models.Model,),
27 migrations.CreateModel(
28 name='MergedUUID',
29 fields=[
30 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
31 ('uuid', uuidfield.fields.UUIDField(unique=True, max_length=32)),
32 ('content_type', models.ForeignKey(to='contenttypes.ContentType', to_field='id')),
33 ('object_id', uuidfield.fields.UUIDField(max_length=32)),
35 options={
37 bases=(models.Model,),
39 migrations.CreateModel(
40 name='Slug',
41 fields=[
42 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
43 ('order', models.PositiveSmallIntegerField()),
44 ('scope', uuidfield.fields.UUIDField(max_length=32, null=True)),
45 ('slug', models.SlugField()),
46 ('content_type', models.ForeignKey(to='contenttypes.ContentType', to_field='id')),
47 ('object_id', uuidfield.fields.UUIDField(max_length=32)),
49 options={
50 'unique_together': set([(b'slug', b'scope'), (b'content_type', b'object_id', b'order')]),
52 bases=(models.Model,),
54 migrations.CreateModel(
55 name='Tag',
56 fields=[
57 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
58 ('tag', models.SlugField()),
59 ('source', models.PositiveSmallIntegerField(choices=[(1, b'Feed'), (2, b'delicious'), (4, b'User')])),
60 ('content_type', models.ForeignKey(to='contenttypes.ContentType', to_field='id')),
61 ('object_id', uuidfield.fields.UUIDField(max_length=32)),
63 options={
64 'unique_together': set([(b'tag', b'source', b'content_type', b'object_id')]),
66 bases=(models.Model,),
68 migrations.CreateModel(
69 name='URL',
70 fields=[
71 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
72 ('order', models.PositiveSmallIntegerField()),
73 ('scope', uuidfield.fields.UUIDField(max_length=32, null=True)),
74 ('url', models.URLField(max_length=1000)),
75 ('content_type', models.ForeignKey(to='contenttypes.ContentType', to_field='id')),
76 ('object_id', uuidfield.fields.UUIDField(max_length=32)),
78 options={
79 'unique_together': set([(b'url', b'scope'), (b'content_type', b'object_id', b'order')]),
81 bases=(models.Model,),
83 migrations.CreateModel(
84 name='Podcast',
85 fields=[
86 ('id', uuidfield.fields.UUIDField(max_length=32, serialize=False, primary_key=True)),
87 ('title', models.CharField(max_length=1000, blank=True)),
88 ('subtitle', models.CharField(max_length=1000, blank=True)),
89 ('description', models.TextField(blank=True)),
90 ('link', models.URLField(max_length=1000, null=True)),
91 ('language', models.CharField(max_length=10, null=True)),
92 ('last_update', models.DateTimeField()),
93 ('created', models.DateTimeField()),
94 ('modified', models.DateTimeField(auto_now=True)),
95 ('license', models.CharField(max_length=100, null=True)),
96 ('flattr_url', models.URLField(max_length=1000, null=True)),
97 ('content_types', models.CharField(max_length=20, blank=True)),
98 ('outdated', models.BooleanField(default=False)),
99 ('author', models.CharField(max_length=100, null=True, blank=True)),
100 ('logo_url', models.URLField(max_length=1000, null=True)),
101 ('group', models.ForeignKey(to='podcasts.PodcastGroup', to_field=b'id', null=True)),
102 ('group_member_name', models.CharField(max_length=30, null=True)),
103 ('common_episode_title', models.CharField(max_length=50, blank=True)),
104 ('new_location', models.URLField(max_length=1000, null=True)),
105 ('latest_episode_timestamp', models.DateTimeField(null=True)),
106 ('episode_count', models.PositiveIntegerField()),
107 ('hub', models.URLField(null=True)),
108 ('related_podcasts', models.ManyToManyField(to=b'podcasts.Podcast')),
110 options={
111 'abstract': False,
113 bases=(models.Model,),
115 migrations.CreateModel(
116 name='Episode',
117 fields=[
118 ('id', uuidfield.fields.UUIDField(max_length=32, serialize=False, primary_key=True)),
119 ('title', models.CharField(max_length=1000, blank=True)),
120 ('subtitle', models.CharField(max_length=1000, blank=True)),
121 ('description', models.TextField(blank=True)),
122 ('link', models.URLField(max_length=1000, null=True)),
123 ('language', models.CharField(max_length=10, null=True)),
124 ('last_update', models.DateTimeField()),
125 ('created', models.DateTimeField()),
126 ('modified', models.DateTimeField(auto_now=True)),
127 ('license', models.CharField(max_length=100, null=True)),
128 ('flattr_url', models.URLField(max_length=1000, null=True)),
129 ('content_types', models.CharField(max_length=20, blank=True)),
130 ('outdated', models.BooleanField(default=False)),
131 ('author', models.CharField(max_length=100, null=True, blank=True)),
132 ('guid', models.CharField(max_length=50, null=True)),
133 ('content', models.TextField()),
134 ('released', models.DateTimeField(null=True)),
135 ('duration', models.PositiveIntegerField(null=True)),
136 ('filesize', models.PositiveIntegerField(null=True)),
137 ('mimetypes', models.CharField(max_length=50)),
138 ('listeners', models.PositiveIntegerField(null=True)),
139 ('podcast', models.ForeignKey(to='podcasts.Podcast', to_field=b'id')),
141 options={
142 'abstract': False,
144 bases=(models.Model,),