From 1611906094f8583371167eb6184c0f6762e13c2e Mon Sep 17 00:00:00 2001 From: Mariusz Felisiak Date: Fri, 20 Sep 2019 22:01:28 +0200 Subject: [PATCH] [3.0.x] Refs #30771 -- Fixed RemovedInDjango31Warning in test_exact_query_rhs_with_selected_columns. --- tests/lookup/tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/lookup/tests.py b/tests/lookup/tests.py index 1958b995b2..af6790fe1f 100644 --- a/tests/lookup/tests.py +++ b/tests/lookup/tests.py @@ -966,6 +966,6 @@ class LookupTests(TestCase): 'name', ).annotate( max_id=Max('id'), - ).values('max_id') + ).values('max_id').order_by() authors = Author.objects.filter(id=authors_max_ids[:1]) self.assertEqual(authors.get(), newest_author)