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()