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()