diff options
| author | Tim Graham <timograham@gmail.com> | 2016-04-07 22:04:45 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2016-04-08 10:12:33 -0400 |
| commit | 92053acbb9160862c3e743a99ed8ccff8d4f8fd6 (patch) | |
| tree | 50e7fd28a650f0e2352cf94f92e5a66d28a81988 /tests/model_inheritance | |
| parent | df8d8d4292684d6ffa7474f1e201aed486f02b53 (diff) | |
Fixed E128 flake8 warnings in tests/.
Diffstat (limited to 'tests/model_inheritance')
| -rw-r--r-- | tests/model_inheritance/tests.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/model_inheritance/tests.py b/tests/model_inheritance/tests.py index 72079a50f8..d47ad08680 100644 --- a/tests/model_inheritance/tests.py +++ b/tests/model_inheritance/tests.py @@ -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): |
