1 # -*- coding: utf-8 -*-
2 from __future__ import unicode_literals
4 from django.db import models, migrations
9 class Migration(migrations.Migration):
15 migrations.CreateModel(
18 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
19 ('source_file', models.FileField(verbose_name='source file', max_length=255, editable=False, upload_to=archive.models.source_upload_to)),
20 ('source_sha1', models.CharField(max_length=40, editable=False)),
21 ('title', models.CharField(max_length=255, verbose_name='title')),
22 ('part_name', models.CharField(default=b'', help_text='eg. chapter in a novel', max_length=255, verbose_name='part name', blank=True)),
23 ('index', models.IntegerField(default=0, verbose_name='index')),
24 ('parts_count', models.IntegerField(default=1, verbose_name='parts count')),
25 ('artist', models.CharField(max_length=255, verbose_name='artist')),
26 ('conductor', models.CharField(max_length=255, verbose_name='conductor')),
27 ('encoded_by', models.CharField(max_length=255, verbose_name='encoded by')),
28 ('date', models.CharField(max_length=255, verbose_name='date')),
29 ('url', models.URLField(max_length=255, verbose_name='book url')),
30 ('translator', models.CharField(max_length=255, null=True, verbose_name='translator', blank=True)),
31 ('modified', models.DateTimeField(null=True, editable=False)),
32 ('mp3_status', models.SmallIntegerField(null=True, editable=False, choices=[(1, 'Waiting'), (2, 'Encoding'), (3, 'Tagging'), (4, 'Sending')])),
33 ('mp3_task', models.CharField(max_length=64, null=True, editable=False)),
34 ('mp3_tags', models.TextField(null=True, editable=False)),
35 ('mp3_file', models.FileField(storage=archive.utils.OverwriteStorage(), upload_to=b'archive/final', null=True, editable=False)),
36 ('mp3_published_tags', models.TextField(null=True, editable=False)),
37 ('mp3_published', models.DateTimeField(null=True, editable=False)),
38 ('ogg_status', models.SmallIntegerField(null=True, editable=False, choices=[(1, 'Waiting'), (2, 'Encoding'), (3, 'Tagging'), (4, 'Sending')])),
39 ('ogg_task', models.CharField(max_length=64, null=True, editable=False)),
40 ('ogg_tags', models.TextField(null=True, editable=False)),
41 ('ogg_file', models.FileField(storage=archive.utils.OverwriteStorage(), upload_to=b'archive/final', null=True, editable=False)),
42 ('ogg_published_tags', models.TextField(null=True, editable=False)),
43 ('ogg_published', models.DateTimeField(null=True, editable=False)),
46 'ordering': ('title',),
47 'verbose_name': 'audiobook',
48 'verbose_name_plural': 'audiobooks',
50 bases=(models.Model,),
52 migrations.CreateModel(
55 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
56 ('name', models.CharField(unique=True, max_length=128, verbose_name=b'Nazwa', db_index=True)),
57 ('sponsors', models.TextField(null=True, verbose_name=b'Sponsorzy', blank=True)),
60 'ordering': ('name',),
61 'verbose_name': 'project',
62 'verbose_name_plural': 'projects',
64 bases=(models.Model,),
67 model_name='audiobook',
69 field=models.ForeignKey(verbose_name='project', to='archive.Project'),
70 preserve_default=True,