X-Git-Url: https://git.mdrn.pl/audio.git/blobdiff_plain/ac39503a5a9a16c1098e65ee16a866cf8eb19a8f..23994f414001d00c7e1dcad37a33cd7379d510e1:/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 cc10a9f..64d0c1d 100644 --- a/src/archive/migrations/0001_initial.py +++ b/src/archive/migrations/0001_initial.py @@ -1,9 +1,5 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.db import models, migrations import archive.utils -import jsonfield.fields import archive.models @@ -20,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,15 +28,15 @@ class Migration(migrations.Migration): ('modified', models.DateTimeField(null=True, editable=False)), ('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', jsonfield.fields.JSONField(null=True, editable=False)), - ('mp3_file', models.FileField(storage=archive.utils.OverwriteStorage(), upload_to=b'archive/final', null=True, editable=False)), - ('mp3_published_tags', jsonfield.fields.JSONField(null=True, editable=False)), + ('mp3_tags', models.TextField(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', jsonfield.fields.JSONField(null=True, editable=False)), - ('ogg_file', models.FileField(storage=archive.utils.OverwriteStorage(), upload_to=b'archive/final', null=True, editable=False)), - ('ogg_published_tags', jsonfield.fields.JSONField(null=True, editable=False)), + ('ogg_tags', models.TextField(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)), ], options={ @@ -54,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',), @@ -67,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, ), ]