mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Refs #30573 -- Rephrased "Of Course" and "Obvious(ly)" in documentation and comments.
This commit is contained in:
committed by
Mariusz Felisiak
parent
787981f9d1
commit
d17b380653
@@ -60,10 +60,6 @@ class SelectRelatedTests(TestCase):
|
||||
self.assertEqual(domain.name, 'Eukaryota')
|
||||
|
||||
def test_list_without_select_related(self):
|
||||
"""
|
||||
select_related() also of course applies to entire lists, not just
|
||||
items. This test verifies the expected behavior without select_related.
|
||||
"""
|
||||
with self.assertNumQueries(9):
|
||||
world = Species.objects.all()
|
||||
families = [o.genus.family.name for o in world]
|
||||
@@ -75,10 +71,7 @@ class SelectRelatedTests(TestCase):
|
||||
])
|
||||
|
||||
def test_list_with_select_related(self):
|
||||
"""
|
||||
select_related() also of course applies to entire lists, not just
|
||||
items. This test verifies the expected behavior with select_related.
|
||||
"""
|
||||
"""select_related() applies to entire lists, not just items."""
|
||||
with self.assertNumQueries(1):
|
||||
world = Species.objects.all().select_related()
|
||||
families = [o.genus.family.name for o in world]
|
||||
|
||||
Reference in New Issue
Block a user