mirror of
https://github.com/django/django.git
synced 2025-08-02 18:13:02 +00:00
Fixed #21196 -- Removed index on test field causing MySQL specific warning.
This commit is contained in:
parent
c1b9f99a81
commit
825ea83858
1 changed files with 2 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue