kopia lustrzana https://github.com/wagtail/wagtail
Remove redundant db_index flag from Filter.spec field
This works around the Django bug https://code.djangoproject.com/ticket/26034pull/2085/head
rodzic
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):
|
||||
|
|
Ładowanie…
Reference in New Issue