[3.0.x] Refs #30771 -- Fixed RemovedInDjango31Warning in test_exact_query_rhs_with_selected_columns.

This commit is contained in:
Mariusz Felisiak 2019-09-20 22:01:28 +02:00 committed by GitHub
parent 3697ddbf75
commit 1611906094
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -966,6 +966,6 @@ class LookupTests(TestCase):
'name', 'name',
).annotate( ).annotate(
max_id=Max('id'), max_id=Max('id'),
).values('max_id') ).values('max_id').order_by()
authors = Author.objects.filter(id=authors_max_ids[:1]) authors = Author.objects.filter(id=authors_max_ids[:1])
self.assertEqual(authors.get(), newest_author) self.assertEqual(authors.get(), newest_author)