diff --git a/sapl/crud/base.py b/sapl/crud/base.py index f33d610d5..fc735570d 100644 --- a/sapl/crud/base.py +++ b/sapl/crud/base.py @@ -843,6 +843,7 @@ class CrudDeleteView(PermissionRequiredContainerCrudMixin, def delete(self, request, *args, **kwargs): try: super(CrudDeleteView, self).delete(request, args, kwargs) + return self.list_url except models.ProtectedError as err: error_msg = 'Registro não pode ser removido, pois\ é referenciado por outros registros:
\