mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16:09 +00:00
Fixed E128 flake8 warnings in tests/.
This commit is contained in:
@@ -336,10 +336,8 @@ class ModelInheritanceDataTests(TestCase):
|
||||
#23370 - Should be able to defer child fields when using
|
||||
select_related() from parent to child.
|
||||
"""
|
||||
qs = (Restaurant.objects
|
||||
.select_related("italianrestaurant")
|
||||
.defer("italianrestaurant__serves_gnocchi")
|
||||
.order_by("rating"))
|
||||
qs = (Restaurant.objects.select_related("italianrestaurant")
|
||||
.defer("italianrestaurant__serves_gnocchi").order_by("rating"))
|
||||
|
||||
# Test that the field was actually deferred
|
||||
with self.assertNumQueries(2):
|
||||
|
||||
Reference in New Issue
Block a user