From 77e0f823ae1f7df9687cf8b5eca1dc78187bd0c3 Mon Sep 17 00:00:00 2001 From: Edward Ribeiro Date: Thu, 1 Jun 2017 14:58:44 -0300 Subject: [PATCH] =?UTF-8?q?Conserta=20redirecionamento=20de=20exclus=C3=A3?= =?UTF-8?q?o=20de=20acompanhamento.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sapl/materia/views.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/sapl/materia/views.py b/sapl/materia/views.py index 819f07f6c..e5583b355 100644 --- a/sapl/materia/views.py +++ b/sapl/materia/views.py @@ -1297,8 +1297,9 @@ class AcompanhamentoConfirmarView(TemplateView): class AcompanhamentoExcluirView(TemplateView): - def get_redirect_url(self): - return reverse('sapl.sessao:list_pauta_sessao') + def get_success_url(self): + return reverse('sapl.materia:materialegislativa_detail', + kwargs={'pk': self.kwargs['pk']}) def get(self, request, *args, **kwargs): materia_id = kwargs['pk'] @@ -1310,7 +1311,7 @@ class AcompanhamentoExcluirView(TemplateView): except ObjectDoesNotExist: pass - return HttpResponseRedirect(self.get_redirect_url()) + return HttpResponseRedirect(self.get_success_url()) class MateriaLegislativaPesquisaView(FilterView):