Browse Source

Fix #609

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

8
sapl/sessao/views.py

@ -401,6 +401,10 @@ class OradorExpedienteCrud(OradorCrud):
class CreateView(PermissionRequiredMixin, MasterDetailCrud.CreateView):
permission_required = permissoes_sessao()
def get_success_url(self):
return reverse('sapl.sessao:oradorexpediente_list',
kwargs={'pk': self.kwargs['pk']})
class UpdateView(PermissionRequiredMixin, MasterDetailCrud.UpdateView):
permission_required = permissoes_sessao()
@ -414,6 +418,10 @@ class OradorCrud(OradorCrud):
class CreateView(PermissionRequiredMixin, MasterDetailCrud.CreateView):
permission_required = permissoes_sessao()
def get_success_url(self):
return reverse('sapl.sessao:orador_list',
kwargs={'pk': self.kwargs['pk']})
class UpdateView(PermissionRequiredMixin, MasterDetailCrud.UpdateView):
permission_required = permissoes_sessao()

Loading…
Cancel
Save