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:
David Wobrock 2023-03-13 15:03:28 +01:00 committed by Mariusz Felisiak
parent 39d1e45227
commit d6b6e5d0fd
4 changed files with 31 additions and 9 deletions

View file

@ -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(