mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Removed redundant QuerySet.all() calls in docs and tests.
Most QuerySet methods are mapped onto the Manager and, in general, it isn't necessary to call .all() on the manager.
This commit is contained in:
@@ -238,7 +238,7 @@ class MultiColumnFKTests(TestCase):
|
||||
for m in Membership.objects.select_related("person").order_by("pk")
|
||||
]
|
||||
|
||||
normal_people = [m.person for m in Membership.objects.all().order_by("pk")]
|
||||
normal_people = [m.person for m in Membership.objects.order_by("pk")]
|
||||
self.assertEqual(people, normal_people)
|
||||
|
||||
def test_prefetch_foreignkey_forward_works(self):
|
||||
|
||||
Reference in New Issue
Block a user