0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-12-01 11:41:20 +01:00

Remove redundant db_index flag from Filter.spec field

This works around the Django bug https://code.djangoproject.com/ticket/26034
This commit is contained in:
Matt Westcott 2016-01-05 14:12:28 +00:00
parent 53ef320c4e
commit 77163d33ce
2 changed files with 2 additions and 2 deletions

View File

@ -14,7 +14,7 @@ class Migration(migrations.Migration):
migrations.AlterField(
model_name='filter',
name='spec',
field=models.CharField(unique=True, max_length=255, db_index=True),
field=models.CharField(unique=True, max_length=255),
preserve_default=True,
),
]

View File

@ -366,7 +366,7 @@ class Filter(models.Model):
"""
# The spec pattern is operation1-var1-var2|operation2-var1
spec = models.CharField(max_length=255, db_index=True, unique=True)
spec = models.CharField(max_length=255, unique=True)
@cached_property
def operations(self):