Browse Source

Conserta bug em criacao de sessao

pull/713/head
Eduardo Calil 8 years ago
parent
commit
d06efea2bb
  1. 2
      sapl/sessao/views.py

2
sapl/sessao/views.py

@ -433,7 +433,7 @@ class SessaoCrud(Crud):
class CreateView(Crud.CreateView):
def get_initial(self):
legislatura = Legislatura.objects.order_by('-numero')[0]
legislatura = Legislatura.objects.order_by('-data_inicio')[0]
sessao_legislativa = SessaoLegislativa.objects.order_by(
'-data_inicio')[0]
return {'legislatura': legislatura,

Loading…
Cancel
Save