mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +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:
@@ -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],
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user