Browse Source

votacao simbolica

pull/7/head
Eduardo Edson Batista Cordeiro Alves 9 years ago
parent
commit
56e321ef70
  1. 12
      sessao/views.py

12
sessao/views.py

@ -195,12 +195,9 @@ class PresencaOrdemDiaView(FormMixin, sessao_crud.CrudDetailView):
sessao_plenaria_id=self.object.id
)
<<<<<<< HEAD
presencas = SessaoPlenariaPresenca.objects.filter(
sessao_plen_id=self.object.id
)
=======
>>>>>>> f0a7ceed7625f68654453d90052a43dd4cad58f1
presentes = [p.parlamentar for p in presencas]
for parlamentar in Parlamentar.objects.filter(ativo=True):
@ -1376,11 +1373,14 @@ class VotacaoNomimalView(FormMixin, sessao_crud.CrudDetailView):
sessao_plen_id=self.object.id
)
presencas = SessaoPlenariaPresenca.objects.filter(
sessao_plen_id=self.object.id
)
presentes = [p.parlamentar for p in presencas]
for parlamentar in Parlamentar.objects.filter(ativo=True):
if parlamentar in presentes:
yield (parlamentar, True)
else:
yield (parlamentar, False)
yield parlamentar
class VotacaoSecretaView(FormMixin, sessao_crud.CrudDetailView):

Loading…
Cancel
Save