mirror of
https://github.com/django/django.git
synced 2025-07-28 15:44:20 +00:00
Fixed #28553 -- Fixed annotation mismatch with QuerySet.values()/values_list() on compound queries.
Co-authored-by: Matthias Kestenholz <mk@feinheit.ch>
This commit is contained in:
parent
39d1e45227
commit
d6b6e5d0fd
4 changed files with 31 additions and 9 deletions
|
@ -466,8 +466,8 @@ class TestQuerying(PostgreSQLTestCase):
|
|||
],
|
||||
)
|
||||
sql = ctx[0]["sql"]
|
||||
self.assertIn("GROUP BY 1", sql)
|
||||
self.assertIn("ORDER BY 1", sql)
|
||||
self.assertIn("GROUP BY 2", sql)
|
||||
self.assertIn("ORDER BY 2", sql)
|
||||
|
||||
def test_index(self):
|
||||
self.assertSequenceEqual(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue