From 81a4f8ac06b622d6c267f7cc98e4097fc6ff4a26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Pedro=20Sconetto?= Date: Mon, 16 Apr 2018 11:32:10 -0300 Subject: [PATCH] Fix #1873 (#1881) --- sapl/sessao/views.py | 1 + 1 file changed, 1 insertion(+) diff --git a/sapl/sessao/views.py b/sapl/sessao/views.py index 8203e6df9..25665c792 100644 --- a/sapl/sessao/views.py +++ b/sapl/sessao/views.py @@ -988,6 +988,7 @@ class MesaView(FormMixin, DetailView): [p.parlamentar for p in parlamentares]) - set( parlamentares_ocupados)) + parlamentares_vagos = [p for p in parlamentares_vagos if p.ativo] # Se todos os cargos estiverem ocupados, a listagem de parlamentares # deve ser renderizada vazia if not cargos_vagos: