Browse Source

Fix #611

pull/626/head
Eduardo Edson Batista Cordeiro Alves 8 years ago
parent
commit
d46c080371
  1. 8
      sapl/sessao/views.py

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

Loading…
Cancel
Save