From: Radek Czajka Date: Fri, 17 Apr 2020 16:59:11 +0000 (+0200) Subject: Longer slug. X-Git-Url: https://git.mdrn.pl/redakcja.git/commitdiff_plain/be8ef0d8acf821727d6a023e72eca0c81ee96d84?ds=sidebyside Longer slug. --- 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)