Support longer tag names.
authorRadek Czajka <radekczajka@nowoczesnapolska.org.pl>
Mon, 23 Nov 2015 14:32:43 +0000 (15:32 +0100)
committerRadek Czajka <radekczajka@nowoczesnapolska.org.pl>
Mon, 23 Nov 2015 14:32:43 +0000 (15:32 +0100)
apps/catalogue/migrations/0007_auto_20151123_1529.py [new file with mode: 0644]
apps/catalogue/models/tag.py

diff --git a/apps/catalogue/migrations/0007_auto_20151123_1529.py b/apps/catalogue/migrations/0007_auto_20151123_1529.py
new file mode 100644 (file)
index 0000000..86afa98
--- /dev/null
@@ -0,0 +1,74 @@
+# -*- coding: utf-8 -*-
+from __future__ import unicode_literals
+
+from django.db import models, migrations
+
+
+class Migration(migrations.Migration):
+
+    dependencies = [
+        ('catalogue', '0006_auto_20141022_1059'),
+    ]
+
+    operations = [
+        migrations.AlterField(
+            model_name='tag',
+            name='name',
+            field=models.CharField(max_length=120, verbose_name='name', db_index=True),
+            preserve_default=True,
+        ),
+        migrations.AlterField(
+            model_name='tag',
+            name='name_de',
+            field=models.CharField(max_length=120, null=True, verbose_name='name', db_index=True),
+            preserve_default=True,
+        ),
+        migrations.AlterField(
+            model_name='tag',
+            name='name_en',
+            field=models.CharField(max_length=120, null=True, verbose_name='name', db_index=True),
+            preserve_default=True,
+        ),
+        migrations.AlterField(
+            model_name='tag',
+            name='name_es',
+            field=models.CharField(max_length=120, null=True, verbose_name='name', db_index=True),
+            preserve_default=True,
+        ),
+        migrations.AlterField(
+            model_name='tag',
+            name='name_fr',
+            field=models.CharField(max_length=120, null=True, verbose_name='name', db_index=True),
+            preserve_default=True,
+        ),
+        migrations.AlterField(
+            model_name='tag',
+            name='name_it',
+            field=models.CharField(max_length=120, null=True, verbose_name='name', db_index=True),
+            preserve_default=True,
+        ),
+        migrations.AlterField(
+            model_name='tag',
+            name='name_lt',
+            field=models.CharField(max_length=120, null=True, verbose_name='name', db_index=True),
+            preserve_default=True,
+        ),
+        migrations.AlterField(
+            model_name='tag',
+            name='name_pl',
+            field=models.CharField(max_length=120, null=True, verbose_name='name', db_index=True),
+            preserve_default=True,
+        ),
+        migrations.AlterField(
+            model_name='tag',
+            name='name_ru',
+            field=models.CharField(max_length=120, null=True, verbose_name='name', db_index=True),
+            preserve_default=True,
+        ),
+        migrations.AlterField(
+            model_name='tag',
+            name='name_uk',
+            field=models.CharField(max_length=120, null=True, verbose_name='name', db_index=True),
+            preserve_default=True,
+        ),
+    ]
index 0e9442f..02bf6c0 100644 (file)
@@ -30,7 +30,7 @@ class Tag(TagBase):
 
     Used to represent searchable metadata (authors, epochs, genres, kinds),
     fragment themes (motifs) and some book hierarchy related kludges."""
-    name = models.CharField(_('name'), max_length=50, db_index=True)
+    name = models.CharField(_('name'), max_length=120, db_index=True)
     slug = models.SlugField(_('slug'), max_length=120, db_index=True)
     sort_key = models.CharField(_('sort key'), max_length=120, db_index=True)
     category = models.CharField(_('category'), max_length=50, blank=False, null=False,