Commit 8e465650 authored by fred's avatar fred

migrations: import choices to always get current ones

parent a6aabe3a
......@@ -4,6 +4,8 @@ from __future__ import unicode_literals
from django.db import migrations, models
from emissions.models import LICENSES, PODCAST_SOUND_QUALITY_LIST
class Migration(migrations.Migration):
......@@ -15,12 +17,12 @@ class Migration(migrations.Migration):
migrations.AddField(
model_name='emission',
name='podcast_sound_quality',
field=models.CharField(choices=[('standard', 'Standard'), ('high', 'High')], default='standard', max_length=20, verbose_name='Podcast sound quality'),
field=models.CharField(choices=PODCAST_SOUND_QUALITY_LIST),
),
migrations.AlterField(
model_name='emission',
name='default_license',
field=models.CharField(blank=True, choices=[('', 'Unspecified'), ('cc by', 'Creative Commons Attribution'), ('cc by-sa', 'Creative Commons Attribution ShareAlike'), ('cc by-nc', 'Creative Commons Attribution NonCommercial'), ('cc by-nd', 'Creative Commons Attribution NoDerivs'), ('cc by-nc-sa', 'Creative Commons Attribution NonCommercial ShareAlike'), ('cc by-nc-nd', 'Creative Commons Attribution NonCommercial NoDerivs'), ('cc0 / pd', 'Creative Commons Zero / Public Domain'), ('artlibre', 'Art Libre')], default='', max_length=20, verbose_name='Default license for podcasts'),
field=models.CharField(blank=True, choices=LICENSES, default='', max_length=20, verbose_name='Default license for podcasts'),
),
migrations.AlterField(
model_name='focus',
......@@ -35,6 +37,6 @@ class Migration(migrations.Migration):
migrations.AlterField(
model_name='soundfile',
name='license',
field=models.CharField(blank=True, choices=[('', 'Unspecified'), ('cc by', 'Creative Commons Attribution'), ('cc by-sa', 'Creative Commons Attribution ShareAlike'), ('cc by-nc', 'Creative Commons Attribution NonCommercial'), ('cc by-nd', 'Creative Commons Attribution NoDerivs'), ('cc by-nc-sa', 'Creative Commons Attribution NonCommercial ShareAlike'), ('cc by-nc-nd', 'Creative Commons Attribution NonCommercial NoDerivs'), ('cc0 / pd', 'Creative Commons Zero / Public Domain'), ('artlibre', 'Art Libre')], default='', max_length=20, verbose_name='License'),
field=models.CharField(blank=True, choices=LICENSES, default='', max_length=20, verbose_name='License'),
),
]
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment