diff --git a/django_admin_smoke_tests/tests.py b/django_admin_smoke_tests/tests.py index 5d95069e..72964a69 100644 --- a/django_admin_smoke_tests/tests.py +++ b/django_admin_smoke_tests/tests.py @@ -229,15 +229,10 @@ def test_change_view(self, model, model_admin): request = self.get_request() # make sure no errors happen here - try: - response = model_admin.change_view(request, object_id=str(pk)) - if response.__class__ == django.template.response.TemplateResponse: - response.render() - self.assertEqual(response.status_code, 200) - except PermissionDenied: - # this error is commonly raised by ModelAdmins that don't allow - # adding. - pass + response = model_admin.change_view(request, object_id=str(pk)) + if response.__class__ == django.template.response.TemplateResponse: + response.render() + self.assertEqual(response.status_code, 200) class AdminSiteSmokeTest(AdminSiteSmokeTestMixin, TestCase):