From 825ea8385857a98a36b3dc67c427b0000b5d9112 Mon Sep 17 00:00:00 2001 From: Thomas Chaumeny Date: Sun, 19 Oct 2014 02:27:31 +0200 Subject: [PATCH] Fixed #21196 -- Removed index on test field causing MySQL specific warning. --- tests/admin_views/models.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/admin_views/models.py b/tests/admin_views/models.py index 0d61ba3fbb..97be6dc340 100644 --- a/tests/admin_views/models.py +++ b/tests/admin_views/models.py @@ -654,7 +654,8 @@ class PrePopulatedPostLargeSlug(models.Model): """ title = models.CharField(max_length=100) published = models.BooleanField(default=False) - slug = models.SlugField(max_length=1000) + # `db_index=False` because MySQL cannot index large CharField (#21196). + slug = models.SlugField(max_length=1000, db_index=False) class AdminOrderedField(models.Model):