From bf2caf97c612c86e74ee2d7d86c71a75a0761715 Mon Sep 17 00:00:00 2001 From: Eduardo Edson Batista Cordeiro Alves Date: Mon, 24 Oct 2016 09:45:17 -0200 Subject: [PATCH] Fix #399 --- sapl/sessao/views.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sapl/sessao/views.py b/sapl/sessao/views.py index fbd044b51..6d220c2c7 100644 --- a/sapl/sessao/views.py +++ b/sapl/sessao/views.py @@ -467,6 +467,12 @@ class SessaoCrud(Crud): messages.add_message(self.request, messages.ERROR, msg) return {} + class DeleteView(Crud.DeleteView, RedirectView): + + def get_success_url(self): + namespace = self.model._meta.app_config.name + return reverse('%s:%s' % (namespace, 'sessaoplenaria_list')) + class SessaoPermissionMixin(PermissionRequiredForAppCrudMixin, FormMixin,