From 6ad08b73b4cf2c665b1a0196473eb10f9fb68746 Mon Sep 17 00:00:00 2001 From: LeandroRoberto Date: Thu, 24 Nov 2016 11:36:38 -0200 Subject: [PATCH] Fix #807 --- sapl/norma/views.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sapl/norma/views.py b/sapl/norma/views.py index 8f90190e4..f206b7dd7 100644 --- a/sapl/norma/views.py +++ b/sapl/norma/views.py @@ -128,6 +128,11 @@ class NormaCrud(Crud): namespace = self.model._meta.app_config.name return reverse('%s:%s' % (namespace, 'norma_pesquisa')) + class DeleteView(Crud.DeleteView): + + def get_success_url(self): + return self.search_url + class CreateView(Crud.CreateView): form_class = NormaJuridicaForm