From 847f46e9bf88964484c8b76a10af753ea1018311 Mon Sep 17 00:00:00 2001 From: Nick Pope Date: Tue, 22 Feb 2022 09:29:38 +0000 Subject: 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. --- tests/ordering/tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/ordering') diff --git a/tests/ordering/tests.py b/tests/ordering/tests.py index 83f3cc7993..37106aa5dd 100644 --- a/tests/ordering/tests.py +++ b/tests/ordering/tests.py @@ -236,7 +236,7 @@ class OrderingTests(TestCase): and then take the first two). """ self.assertQuerysetEqual( - Article.objects.all().reverse()[:2], + Article.objects.reverse()[:2], [ "Article 1", "Article 3", -- cgit v1.3