allow blank slugs
This commit is contained in:
parent
f248a5e0ca
commit
c432899346
23
src/economy/migrations/0009_auto_20190328_0715.py
Normal file
23
src/economy/migrations/0009_auto_20190328_0715.py
Normal 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.'),
|
||||||
|
),
|
||||||
|
]
|
|
@ -27,6 +27,7 @@ class Chain(CreatedUpdatedModel, UUIDModel):
|
||||||
|
|
||||||
slug = models.SlugField(
|
slug = models.SlugField(
|
||||||
unique=True,
|
unique=True,
|
||||||
|
blank=True,
|
||||||
help_text='The url slug for this Chain. Leave blank to auto generate a slug.'
|
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(
|
slug = models.SlugField(
|
||||||
|
blank=True,
|
||||||
help_text='The url slug for this Credebtor. Leave blank to auto generate a slug.'
|
help_text='The url slug for this Credebtor. Leave blank to auto generate a slug.'
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue