From c43289934697d1659246a6aa7e87c7c00d338cf5 Mon Sep 17 00:00:00 2001 From: Thomas Steen Rasmussen Date: Thu, 28 Mar 2019 07:16:02 +0100 Subject: [PATCH] allow blank slugs --- .../migrations/0009_auto_20190328_0715.py | 23 +++++++++++++++++++ src/economy/models.py | 2 ++ 2 files changed, 25 insertions(+) create mode 100644 src/economy/migrations/0009_auto_20190328_0715.py diff --git a/src/economy/migrations/0009_auto_20190328_0715.py b/src/economy/migrations/0009_auto_20190328_0715.py new file mode 100644 index 00000000..0f7ea4c3 --- /dev/null +++ b/src/economy/migrations/0009_auto_20190328_0715.py @@ -0,0 +1,23 @@ +# Generated by Django 2.1.7 on 2019-03-28 06:15 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('economy', '0008_auto_20190327_1721'), + ] + + operations = [ + migrations.AlterField( + model_name='chain', + name='slug', + field=models.SlugField(blank=True, help_text='The url slug for this Chain. Leave blank to auto generate a slug.', unique=True), + ), + migrations.AlterField( + model_name='credebtor', + name='slug', + field=models.SlugField(blank=True, help_text='The url slug for this Credebtor. Leave blank to auto generate a slug.'), + ), + ] diff --git a/src/economy/models.py b/src/economy/models.py index 4bde6ec9..91439183 100644 --- a/src/economy/models.py +++ b/src/economy/models.py @@ -27,6 +27,7 @@ class Chain(CreatedUpdatedModel, UUIDModel): slug = models.SlugField( unique=True, + blank=True, help_text='The url slug for this Chain. Leave blank to auto generate a slug.' ) @@ -69,6 +70,7 @@ class Credebtor(CreatedUpdatedModel, UUIDModel): ) slug = models.SlugField( + blank=True, help_text='The url slug for this Credebtor. Leave blank to auto generate a slug.' )