From 6800251ed2c4b6ca1320eaad3b5571af9a88678f Mon Sep 17 00:00:00 2001 From: Edward Ribeiro Date: Tue, 6 Jun 2017 14:14:10 -0300 Subject: [PATCH] Fixes #1166 --- sapl/protocoloadm/views.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sapl/protocoloadm/views.py b/sapl/protocoloadm/views.py index a43d70da6..c478b6f62 100644 --- a/sapl/protocoloadm/views.py +++ b/sapl/protocoloadm/views.py @@ -121,6 +121,10 @@ class DocumentoAdministrativoCrud(Crud): kwargs={'pk': self.object.pk})) return context + class DeleteView(DocumentoAdministrativoMixin, Crud.DeleteView): + def get_success_url(self): + return reverse('sapl.protocoloadm:pesq_doc_adm', kwargs={}) + class StatusTramitacaoAdministrativoCrud(CrudAux): model = StatusTramitacaoAdministrativo