]> git.0d.be Git - django-panik-nonstop.git/commitdiff
increase size of language column (for "other")
authorFrédéric Péters <fpeters@0d.be>
Thu, 16 Jul 2020 12:52:32 +0000 (14:52 +0200)
committerFrédéric Péters <fpeters@0d.be>
Thu, 16 Jul 2020 12:52:32 +0000 (14:52 +0200)
nonstop/migrations/0028_auto_20200716_1452.py [new file with mode: 0644]
nonstop/models.py

diff --git a/nonstop/migrations/0028_auto_20200716_1452.py b/nonstop/migrations/0028_auto_20200716_1452.py
new file mode 100644 (file)
index 0000000..1b29901
--- /dev/null
@@ -0,0 +1,20 @@
+# -*- coding: utf-8 -*-
+# Generated by Django 1.11.29 on 2020-07-16 14:52
+from __future__ import unicode_literals
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+    dependencies = [
+        ('nonstop', '0027_auto_20200702_1001'),
+    ]
+
+    operations = [
+        migrations.AlterField(
+            model_name='track',
+            name='language',
+            field=models.CharField(blank=True, choices=[('en', 'English'), ('fr', 'French'), ('nl', 'Dutch'), ('other', 'Other'), ('na', 'Not applicable')], max_length=10),
+        ),
+    ]
index 731500b2dc4e0a87bd8e152d955edfe7e7c023eb..a91a8cad53eb268417894816f8e8bc69a801aa5f 100644 (file)
@@ -61,7 +61,7 @@ class Track(models.Model):
     artist = models.ForeignKey(Artist, null=True)
     album = models.ForeignKey(Album, null=True)
     instru = models.BooleanField(_('Instru'), default=False)
-    language = models.CharField(max_length=3,
+    language = models.CharField(max_length=10,
             choices=LANGUAGES, blank=True)
     sabam = models.BooleanField('SABAM', default=True)
     cfwb = models.BooleanField('CFWB', default=False)