mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +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:
parent
7ba6ebe914
commit
847f46e9bf
47 changed files with 184 additions and 209 deletions
|
@ -278,9 +278,7 @@ class TestQuerying(PostgreSQLTestCase):
|
|||
IntegerArrayModel.objects.create(field=[2, 3])
|
||||
self.assertSequenceEqual(
|
||||
NullableIntegerArrayModel.objects.filter(
|
||||
field__in=IntegerArrayModel.objects.all().values_list(
|
||||
"field", flat=True
|
||||
)
|
||||
field__in=IntegerArrayModel.objects.values_list("field", flat=True)
|
||||
),
|
||||
self.objs[2:3],
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue