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