From 105873d738ca60b64a27fdc04d345c28c21cddd1 Mon Sep 17 00:00:00 2001 From: Edward Ribeiro Date: Thu, 22 Jun 2017 16:03:42 -0300 Subject: [PATCH] Fixes #1225 --- sapl/materia/views.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sapl/materia/views.py b/sapl/materia/views.py index c30dbd47f..82736b2c8 100644 --- a/sapl/materia/views.py +++ b/sapl/materia/views.py @@ -922,6 +922,10 @@ class TramitacaoCrud(MasterDetailCrud): class CreateView(MasterDetailCrud.CreateView): form_class = TramitacaoForm + def get_success_url(self): + return reverse('sapl.materia:tramitacao_list', kwargs={ + 'pk': self.kwargs['pk']}) + def get_initial(self): local = MateriaLegislativa.objects.get( pk=self.kwargs['pk']).tramitacao_set.order_by(