1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Refs #27236 -- Removed usage of Meta.index_together from indexes/introspection test models.

This commit is contained in:
David Wobrock
2022-07-11 08:23:50 +02:00
committed by Mariusz Felisiak
parent 77330a089c
commit f8f16b3cd8
3 changed files with 7 additions and 13 deletions

View File

@@ -41,9 +41,9 @@ class Article(models.Model):
class Meta:
ordering = ("headline",)
index_together = [
["headline", "pub_date"],
["headline", "response_to", "pub_date", "reporter"],
indexes = [
models.Index(fields=["headline", "pub_date"]),
models.Index(fields=["headline", "response_to", "pub_date", "reporter"]),
]