summaryrefslogtreecommitdiff
path: root/tests/servers
diff options
context:
space:
mode:
authorNick Pope <nick@nickpope.me.uk>2022-02-22 09:29:38 +0000
committerGitHub <noreply@github.com>2022-02-22 10:29:38 +0100
commit847f46e9bf88964484c8b76a10af753ea1018311 (patch)
tree13aced534cbae373f47cce8fce1444ad0e8e01d3 /tests/servers
parent7ba6ebe9149ae38257d70100e8bfbfd0da189862 (diff)
downloaddjango-847f46e9bf88964484c8b76a10af753ea1018311.tar.gz
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.
Diffstat (limited to 'tests/servers')
-rw-r--r--tests/servers/tests.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/servers/tests.py b/tests/servers/tests.py
index 0601e1b837..6aaa8dbada 100644
--- a/tests/servers/tests.py
+++ b/tests/servers/tests.py
@@ -329,7 +329,7 @@ class LiveServerDatabase(LiveServerBase):
with self.urlopen("/create_model_instance/"):
pass
self.assertQuerysetEqual(
- Person.objects.all().order_by("pk"),
+ Person.objects.order_by("pk"),
["jane", "robert", "emily"],
lambda b: b.name,
)