Remove redundant db_index flag from Filter.spec field

This works around the Django bug https://code.djangoproject.com/ticket/26034
pull/2085/head
Matt Westcott 2016-01-05 14:12:28 +00:00
rodzic 53ef320c4e
commit 77163d33ce
2 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -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,
),
]

Wyświetl plik

@ -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):