summaryrefslogtreecommitdiff
path: root/tests/introspection
diff options
context:
space:
mode:
authorDavid Wobrock <david.wobrock@gmail.com>2022-07-11 08:23:50 +0200
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2022-07-11 08:30:19 +0200
commitf8f16b3cd85599b464cbc5c7e884387940c24e6f (patch)
tree3363474cfa67fbf0b03f8f8f6e076e4b664d0e26 /tests/introspection
parent77330a089cdf33533a387225c01736ab353b20fe (diff)
downloaddjango-f8f16b3cd85599b464cbc5c7e884387940c24e6f.tar.gz
Refs #27236 -- Removed usage of Meta.index_together from indexes/introspection test models.
Diffstat (limited to 'tests/introspection')
-rw-r--r--tests/introspection/models.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/introspection/models.py b/tests/introspection/models.py
index 6381e3481c..31c1b0de80 100644
--- a/tests/introspection/models.py
+++ b/tests/introspection/models.py
@@ -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"]),
]