mirror of
https://github.com/django/django.git
synced 2025-11-25 13:13:28 +00:00
Fixed hanging indentation in various code.
This commit is contained in:
parent
aeb8c38178
commit
362813d628
40 changed files with 266 additions and 232 deletions
|
|
@ -233,8 +233,7 @@ class TestDefer2(AssertionMixin, TestCase):
|
|||
fetched parent model PK if it happens to be available.
|
||||
"""
|
||||
s1 = Secondary.objects.create(first="x1", second="y1")
|
||||
bc = BigChild.objects.create(name="b1", value="foo", related=s1,
|
||||
other="bar")
|
||||
bc = BigChild.objects.create(name='b1', value='foo', related=s1, other='bar')
|
||||
bc_deferred = BigChild.objects.only('name').get(pk=bc.pk)
|
||||
with self.assertNumQueries(0):
|
||||
bc_deferred.id
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue