mirror of
https://github.com/django/django.git
synced 2025-07-19 03:05:32 +00:00
Fixed E128 flake8 warnings in tests/.
This commit is contained in:
parent
df8d8d4292
commit
92053acbb9
148 changed files with 2073 additions and 2248 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue