From b4a81505c440ead76ecb9e1aed9b2dbeb3699b2d Mon Sep 17 00:00:00 2001 From: eribeiro Date: Wed, 26 Aug 2020 21:48:49 -0300 Subject: [PATCH] =?UTF-8?q?HOT-FIX:=20corre=C3=A7=C3=A3o=20faltante=20no?= =?UTF-8?q?=20commit=202480c14?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sapl/relatorios/views.py | 2 +- sapl/sessao/views.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sapl/relatorios/views.py b/sapl/relatorios/views.py index ffd3c4da9..b5e2c50fd 100755 --- a/sapl/relatorios/views.py +++ b/sapl/relatorios/views.py @@ -652,7 +652,7 @@ def get_sessao_plenaria(sessao, casa): registro = RegistroVotacao.objects.filter(expediente=mevn) if registro: - for vp in VotoParlamentar.objects.filter(votacao=registro).order_by('parlamentar'): + for vp in VotoParlamentar.objects.filter(votacao__in=registro).order_by('parlamentar'): votos_materia.append(vp) lst_expediente_materia_vot_nom.append({ diff --git a/sapl/sessao/views.py b/sapl/sessao/views.py index bcf67f846..48f89a924 100755 --- a/sapl/sessao/views.py +++ b/sapl/sessao/views.py @@ -2153,7 +2153,7 @@ class ResumoView(DetailView): titulo_materia = mevn.materia registro = RegistroVotacao.objects.filter(expediente=mevn) if registro: - for vp in VotoParlamentar.objects.filter(votacao=registro).order_by('parlamentar'): + for vp in VotoParlamentar.objects.filter(votacao__in=registro).order_by('parlamentar'): votos_materia.append(vp) votacoes.append({