diff --git a/tests/admin_views/test_autocomplete_view.py b/tests/admin_views/test_autocomplete_view.py index 2b154e7a456..1ba8fb146d2 100644 --- a/tests/admin_views/test_autocomplete_view.py +++ b/tests/admin_views/test_autocomplete_view.py @@ -140,8 +140,6 @@ class AutocompleteJsonViewTests(AdminViewBasicTestCase): autocomplete view for it. """ request = self.factory.get(self.url, {'term': 'is', **self.opts}) - self.user.is_staff = True - self.user.save() request.user = self.user with self.assertRaises(PermissionDenied): AutocompleteJsonView.as_view(**self.as_view_args)(request)