1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

[1.11.x] Fixed #28197 -- Fixed introspection of index field ordering on PostgreSQL.

Backport of 3a5299c19c from master
This commit is contained in:
Tim Schneider
2017-05-12 18:01:30 +02:00
committed by Tim Graham
parent d945b7e42a
commit 566726ff96
4 changed files with 16 additions and 4 deletions

View File

@@ -54,6 +54,7 @@ class Article(models.Model):
ordering = ('headline',)
index_together = [
["headline", "pub_date"],
['headline', 'response_to', 'pub_date', 'reporter'],
]