From d46c080371b14529a580eed4c85f32e8f0e03e24 Mon Sep 17 00:00:00 2001 From: Eduardo Edson Batista Cordeiro Alves Date: Thu, 22 Sep 2016 14:30:09 -0300 Subject: [PATCH] Fix #611 --- sapl/sessao/views.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/sapl/sessao/views.py b/sapl/sessao/views.py index 6112307f1..e1028d0d3 100644 --- a/sapl/sessao/views.py +++ b/sapl/sessao/views.py @@ -180,6 +180,10 @@ class MateriaOrdemDiaCrud(MasterDetailCrud): class CreateView(MasterDetailCrud.CreateView): form_class = OrdemDiaForm + def get_success_url(self): + return reverse('sapl.sessao:ordemdia_list', + kwargs={'pk': self.kwargs['pk']}) + class UpdateView(MasterDetailCrud.UpdateView): form_class = OrdemDiaForm @@ -349,6 +353,10 @@ class ExpedienteMateriaCrud(MasterDetailCrud): form_class = ExpedienteMateriaForm permission_required = permissoes_sessao() + def get_success_url(self): + return reverse('sapl.sessao:expedientemateria_list', + kwargs={'pk': self.kwargs['pk']}) + class UpdateView(PermissionRequiredMixin, MasterDetailCrud.UpdateView): form_class = ExpedienteMateriaForm permission_required = permissoes_sessao()