mirror of https://github.com/django/django.git
[3.0.x] Refs #30771 -- Fixed RemovedInDjango31Warning in test_exact_query_rhs_with_selected_columns.
This commit is contained in:
parent
3697ddbf75
commit
1611906094
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue