From 3653926f59248e1b62734981a065f9678a36ea7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Thu, 11 Jan 2018 08:46:08 +0100 Subject: [PATCH] migrations: mark slug as unique from the start (#20937) --- passerelle_imio_extra_fees/migrations/0001_initial.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)),