diff options
| author | Nick Pope <nick@nickpope.me.uk> | 2022-02-22 09:29:38 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-02-22 10:29:38 +0100 |
| commit | 847f46e9bf88964484c8b76a10af753ea1018311 (patch) | |
| tree | 13aced534cbae373f47cce8fce1444ad0e8e01d3 /tests/admin_views/test_actions.py | |
| parent | 7ba6ebe9149ae38257d70100e8bfbfd0da189862 (diff) | |
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.
Diffstat (limited to 'tests/admin_views/test_actions.py')
| -rw-r--r-- | tests/admin_views/test_actions.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/admin_views/test_actions.py b/tests/admin_views/test_actions.py index ec690f5692..0c209019f3 100644 --- a/tests/admin_views/test_actions.py +++ b/tests/admin_views/test_actions.py @@ -190,7 +190,7 @@ class AdminActionsTest(TestCase): ) # SubscriberAdmin.delete_queryset() sets overridden to True. self.assertIs(SubscriberAdmin.overridden, True) - self.assertEqual(Subscriber.objects.all().count(), 0) + self.assertEqual(Subscriber.objects.count(), 0) def test_delete_selected_uses_get_deleted_objects(self): """The delete_selected action uses ModelAdmin.get_deleted_objects().""" |
