mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16: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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user