Browse Source

HOT-FIX: conserta retorno de DeleteView no CRUD

pull/991/head
Edward Ribeiro 8 years ago
parent
commit
402cb7725a
  1. 1
      sapl/crud/base.py

1
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:<br>\

Loading…
Cancel
Save