mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +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:
@@ -108,7 +108,7 @@ class RelatedGeoModelTest(TestCase):
|
||||
select_related on a query over a model with an FK to a model subclass.
|
||||
"""
|
||||
# Regression test for #9752.
|
||||
list(DirectoryEntry.objects.all().select_related())
|
||||
list(DirectoryEntry.objects.select_related())
|
||||
|
||||
def test06_f_expressions(self):
|
||||
"Testing F() expressions on GeometryFields."
|
||||
|
||||
Reference in New Issue
Block a user