From 402cb7725a204a31c155b37f166c5e29e54fd1e5 Mon Sep 17 00:00:00 2001 From: Edward Ribeiro Date: Mon, 3 Apr 2017 12:45:32 -0300 Subject: [PATCH] HOT-FIX: conserta retorno de DeleteView no CRUD --- sapl/crud/base.py | 1 + 1 file changed, 1 insertion(+) 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:
\