allow blank slugs

This commit is contained in:
Thomas Steen Rasmussen 2019-03-28 07:16:02 +01:00
parent f248a5e0ca
commit c432899346
2 changed files with 25 additions and 0 deletions

View file

@ -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.'),
),
]

View file

@ -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.'
)