1
0
mirror of https://github.com/django/django.git synced 2025-06-05 19:49:13 +00:00

[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

View File

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