X-Git-Url: https://git.mdrn.pl/audio.git/blobdiff_plain/9e7f72dcee48e4ced62061b559db75dcf9b79694..f9eae91a6d2d175b2f227d7ea04ddd5994e9a95a:/src/archive/migrations/0001_initial.py?ds=sidebyside diff --git a/src/archive/migrations/0001_initial.py b/src/archive/migrations/0001_initial.py index c1f2837..64d0c1d 100644 --- a/src/archive/migrations/0001_initial.py +++ b/src/archive/migrations/0001_initial.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.db import models, migrations import archive.utils import archive.models @@ -19,7 +16,7 @@ class Migration(migrations.Migration): ('source_file', models.FileField(verbose_name='source file', max_length=255, editable=False, upload_to=archive.models.source_upload_to)), ('source_sha1', models.CharField(max_length=40, editable=False)), ('title', models.CharField(max_length=255, verbose_name='title')), - ('part_name', models.CharField(default=b'', help_text='eg. chapter in a novel', max_length=255, verbose_name='part name', blank=True)), + ('part_name', models.CharField(default='', help_text='eg. chapter in a novel', max_length=255, verbose_name='part name', blank=True)), ('index', models.IntegerField(default=0, verbose_name='index')), ('parts_count', models.IntegerField(default=1, verbose_name='parts count')), ('artist', models.CharField(max_length=255, verbose_name='artist')), @@ -32,13 +29,13 @@ class Migration(migrations.Migration): ('mp3_status', models.SmallIntegerField(null=True, editable=False, choices=[(1, 'Waiting'), (2, 'Encoding'), (3, 'Tagging'), (4, 'Sending')])), ('mp3_task', models.CharField(max_length=64, null=True, editable=False)), ('mp3_tags', models.TextField(null=True, editable=False)), - ('mp3_file', models.FileField(storage=archive.utils.OverwriteStorage(), upload_to=b'archive/final', null=True, editable=False)), + ('mp3_file', models.FileField(storage=archive.utils.OverwriteStorage(), upload_to='archive/final', null=True, editable=False)), ('mp3_published_tags', models.TextField(null=True, editable=False)), ('mp3_published', models.DateTimeField(null=True, editable=False)), ('ogg_status', models.SmallIntegerField(null=True, editable=False, choices=[(1, 'Waiting'), (2, 'Encoding'), (3, 'Tagging'), (4, 'Sending')])), ('ogg_task', models.CharField(max_length=64, null=True, editable=False)), ('ogg_tags', models.TextField(null=True, editable=False)), - ('ogg_file', models.FileField(storage=archive.utils.OverwriteStorage(), upload_to=b'archive/final', null=True, editable=False)), + ('ogg_file', models.FileField(storage=archive.utils.OverwriteStorage(), upload_to='archive/final', null=True, editable=False)), ('ogg_published_tags', models.TextField(null=True, editable=False)), ('ogg_published', models.DateTimeField(null=True, editable=False)), ], @@ -53,8 +50,8 @@ class Migration(migrations.Migration): name='Project', fields=[ ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), - ('name', models.CharField(unique=True, max_length=128, verbose_name=b'Nazwa', db_index=True)), - ('sponsors', models.TextField(null=True, verbose_name=b'Sponsorzy', blank=True)), + ('name', models.CharField(unique=True, max_length=128, verbose_name='Nazwa', db_index=True)), + ('sponsors', models.TextField(null=True, verbose_name='Sponsorzy', blank=True)), ], options={ 'ordering': ('name',), @@ -66,7 +63,7 @@ class Migration(migrations.Migration): migrations.AddField( model_name='audiobook', name='project', - field=models.ForeignKey(verbose_name='project', to='archive.Project'), + field=models.ForeignKey(verbose_name='project', to='archive.Project', on_delete=models.CASCADE), preserve_default=True, ), ]