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:
parent
53ef320c4e
commit
77163d33ce
@ -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,
|
||||
),
|
||||
]
|
||||
|
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user