Browse Source

Fixes #1225

pull/1227/head
Edward Ribeiro 8 years ago
parent
commit
105873d738
  1. 4
      sapl/materia/views.py

4
sapl/materia/views.py

@ -922,6 +922,10 @@ class TramitacaoCrud(MasterDetailCrud):
class CreateView(MasterDetailCrud.CreateView): class CreateView(MasterDetailCrud.CreateView):
form_class = TramitacaoForm form_class = TramitacaoForm
def get_success_url(self):
return reverse('sapl.materia:tramitacao_list', kwargs={
'pk': self.kwargs['pk']})
def get_initial(self): def get_initial(self):
local = MateriaLegislativa.objects.get( local = MateriaLegislativa.objects.get(
pk=self.kwargs['pk']).tramitacao_set.order_by( pk=self.kwargs['pk']).tramitacao_set.order_by(

Loading…
Cancel
Save