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/model_fields/test_booleanfield.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/model_fields') diff --git a/tests/model_fields/test_booleanfield.py b/tests/model_fields/test_booleanfield.py index 91357b9b20..7e92d99fab 100644 --- a/tests/model_fields/test_booleanfield.py +++ b/tests/model_fields/test_booleanfield.py @@ -73,7 +73,7 @@ class BooleanFieldTests(TestCase): # When an extra clause exists, the boolean conversions are applied with # an offset (#13293). - b5 = BooleanModel.objects.all().extra(select={"string_col": "string"})[0] + b5 = BooleanModel.objects.extra(select={"string_col": "string"})[0] self.assertNotIsInstance(b5.pk, bool) def test_select_related(self): -- cgit v1.3