From 4126cb6df56d483c6afe6d0e1da5daa56b2dfa46 Mon Sep 17 00:00:00 2001 From: Edward Ribeiro Date: Thu, 6 Apr 2017 11:20:25 -0300 Subject: [PATCH] =?UTF-8?q?Conserta=20bug=20que=20pegava=20integrantes=20d?= =?UTF-8?q?a=20Casa=20ao=20inv=C3=A9s=20de=20integrantes=20da=20Mesa=20da?= =?UTF-8?q?=20Sess=C3=A3o=20Plen=C3=A1ria?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sapl/relatorios/views.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sapl/relatorios/views.py b/sapl/relatorios/views.py index dacd39f49..53b9ef54b 100644 --- a/sapl/relatorios/views.py +++ b/sapl/relatorios/views.py @@ -12,7 +12,8 @@ from sapl.parlamentares.models import (CargoMesa, ComposicaoMesa, Filiacao, Parlamentar) from sapl.protocoloadm.models import (DocumentoAdministrativo, Protocolo, TramitacaoAdministrativo) -from sapl.sessao.models import (ExpedienteMateria, ExpedienteSessao, Orador, +from sapl.sessao.models import (ExpedienteMateria, ExpedienteSessao, + IntegranteMesa, Orador, OradorExpediente, OrdemDia, PresencaOrdemDia, RegistroVotacao, SessaoPlenaria, SessaoPlenariaPresenca, TipoExpediente) @@ -484,8 +485,7 @@ def get_sessao_plenaria(sessao, casa): # Lista da composicao da mesa diretora lst_mesa = [] - for composicao in ComposicaoMesa.objects.filter( - sessao_legislativa=sessao.sessao_legislativa): + for composicao in IntegranteMesa.objects.filter(sessao_plenaria=sessao): for parlamentar in Parlamentar.objects.filter( id=composicao.parlamentar.id): for cargo in CargoMesa.objects.filter(id=composicao.cargo.id):