From be8ef0d8acf821727d6a023e72eca0c81ee96d84 Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Fri, 17 Apr 2020 18:59:11 +0200 Subject: [PATCH] Longer slug. --- .../migrations/0018_auto_20200417_1859.py | 18 ++++++++++++++++++ src/catalogue/models.py | 2 +- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 src/catalogue/migrations/0018_auto_20200417_1859.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 index 00000000..46860486 --- /dev/null +++ b/src/catalogue/migrations/0018_auto_20200417_1859.py @@ -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), + ), + ] diff --git a/src/catalogue/models.py b/src/catalogue/models.py index b45cefed..6a27cd9d 100644 --- a/src/catalogue/models.py +++ b/src/catalogue/models.py @@ -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) -- 2.20.1