summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2018-01-11 07:46:08 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2018-01-11 07:46:08 (GMT)
commit3653926f59248e1b62734981a065f9678a36ea7f (patch)
treea6054c5d973fc03d49b13c819e6f6d4d83334db7
parent59853cda39eed4df5bdd4ed784a59acf0d8b72f0 (diff)
downloadpasserelle-imio-extra-fees-3653926f59248e1b62734981a065f9678a36ea7f.zip
passerelle-imio-extra-fees-3653926f59248e1b62734981a065f9678a36ea7f.tar.gz
passerelle-imio-extra-fees-3653926f59248e1b62734981a065f9678a36ea7f.tar.bz2
migrations: mark slug as unique from the start (#20937)
-rw-r--r--passerelle_imio_extra_fees/migrations/0001_initial.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/passerelle_imio_extra_fees/migrations/0001_initial.py b/passerelle_imio_extra_fees/migrations/0001_initial.py
index 09e1ea9..add093c 100644
--- a/passerelle_imio_extra_fees/migrations/0001_initial.py
+++ b/passerelle_imio_extra_fees/migrations/0001_initial.py
@@ -16,7 +16,7 @@ class Migration(migrations.Migration):
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('title', models.CharField(max_length=50)),
- ('slug', models.SlugField(db_index=False)),
+ ('slug', models.SlugField(unique=True)),
('description', models.TextField()),
('log_level', models.CharField(default=b'INFO', max_length=10, verbose_name='Log Level', choices=[(b'NOTSET', b'NOTSET'), (b'DEBUG', b'DEBUG'), (b'INFO', b'INFO'), (b'WARNING', b'WARNING'), (b'ERROR', b'ERROR'), (b'CRITICAL', b'CRITICAL'), (b'FATAL', b'FATAL')])),
('users', models.ManyToManyField(to='base.ApiUser', blank=True)),