From 3f6ee6670aca59580bda53c672061680cb2c764c Mon Sep 17 00:00:00 2001 From: Edward Ribeiro Date: Thu, 16 Feb 2017 14:32:17 -0200 Subject: [PATCH] =?UTF-8?q?Pequena=20otimiza=C3=A7=C3=A3o?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sapl/parlamentares/views.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/sapl/parlamentares/views.py b/sapl/parlamentares/views.py index 7141ab485..51514caad 100644 --- a/sapl/parlamentares/views.py +++ b/sapl/parlamentares/views.py @@ -356,10 +356,7 @@ class MesaDiretoraView(FormView): legislatura=Legislatura.objects.first()).first( ) - if sessao: - mesa = sessao.composicaomesa_set.all() - else: - mesa = [] + mesa = sessao.composicaomesa_set.all() if sessao else [] cargos_ocupados = [m.cargo for m in mesa] cargos = CargoMesa.objects.all()