From 56d8c6c901fb171587b3cf928840579edf90b328 Mon Sep 17 00:00:00 2001 From: AlGouvea Date: Fri, 29 Oct 2021 10:21:08 -0300 Subject: [PATCH] =?UTF-8?q?Fix=20de=20bug=20quando=20presidente=20n=C3=A3o?= =?UTF-8?q?=20est=C3=A1=20presente?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sapl/painel/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sapl/painel/views.py b/sapl/painel/views.py index e248261ab..30a821bfe 100644 --- a/sapl/painel/views.py +++ b/sapl/painel/views.py @@ -465,7 +465,7 @@ def get_presentes(pk, response, materia): mandatos = p.parlamentar.mandato_set.filter(legislatura=legislatura) if p.parlamentar.ativo and mandatos: - if presidente.parlamentar_id == p.parlamentar.id: + if presidente and presidente.parlamentar_id == p.parlamentar.id: presidenteCheck = True else: presidenteCheck = False