Longer slug.
authorRadek Czajka <rczajka@rczajka.pl>
Fri, 17 Apr 2020 16:59:11 +0000 (18:59 +0200)
committerRadek Czajka <rczajka@rczajka.pl>
Fri, 17 Apr 2020 16:59:11 +0000 (18:59 +0200)
src/catalogue/migrations/0018_auto_20200417_1859.py [new file with mode: 0644]
src/catalogue/models.py

diff --git a/src/catalogue/migrations/0018_auto_20200417_1859.py b/src/catalogue/migrations/0018_auto_20200417_1859.py
new file mode 100644 (file)
index 0000000..4686048
--- /dev/null
@@ -0,0 +1,18 @@
+# Generated by Django 3.0.4 on 2020-04-17 18:59
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+    dependencies = [
+        ('catalogue', '0017_auto_20200417_1638'),
+    ]
+
+    operations = [
+        migrations.AlterField(
+            model_name='author',
+            name='slug',
+            field=models.SlugField(blank=True, max_length=255, null=True, unique=True),
+        ),
+    ]
index b45cefe..6a27cd9 100644 (file)
@@ -5,7 +5,7 @@ from .wikidata import WikidataMixin
 
 
 class Author(WikidataMixin, models.Model):
-    slug = models.SlugField(null=True, blank=True, unique=True)
+    slug = models.SlugField(max_length=255, null=True, blank=True, unique=True)
     first_name = models.CharField(max_length=255, blank=True)
     last_name = models.CharField(max_length=255, blank=True)