Browse Source

HOT-FIX: Mesa diretora

pull/735/head
Edward Ribeiro 8 years ago
parent
commit
ffcf6271f3
  1. 9
      sapl/parlamentares/views.py

9
sapl/parlamentares/views.py

@ -267,9 +267,14 @@ class MesaDiretoraView(FormView):
not SessaoLegislativa.objects.exists()):
return self.validation(request)
mesa = SessaoLegislativa.objects.filter(
sessao = SessaoLegislativa.objects.filter(
legislatura=Legislatura.objects.first()).first(
).composicaomesa_set.all()
)
if sessao:
mesa = sessao.composicaomesa_set.all()
else:
mesa = []
cargos_ocupados = [m.cargo for m in mesa]
cargos = CargoMesa.objects.all()

Loading…
Cancel
Save