From eb60754c8c60c95e2930fe8ec88cf3e74f6ae341 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Pedro=20Sconetto?= Date: Mon, 2 Oct 2017 11:03:20 -0300 Subject: [PATCH] =?UTF-8?q?Corrige=20#1502=20para=20listar=20em=20ordem=20?= =?UTF-8?q?alfab=C3=A9tica=20no=20painel?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sapl/painel/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sapl/painel/views.py b/sapl/painel/views.py index e4c616512..6ea0f3f17 100644 --- a/sapl/painel/views.py +++ b/sapl/painel/views.py @@ -260,10 +260,10 @@ def get_materia_aberta(pk): def get_presentes(pk, response, materia): if type(materia) == OrdemDia: presentes = PresencaOrdemDia.objects.filter( - sessao_plenaria_id=pk) + sessao_plenaria_id=pk).order_by('parlamentar') elif type(materia) == ExpedienteMateria: presentes = SessaoPlenariaPresenca.objects.filter( - sessao_plenaria_id=pk) + sessao_plenaria_id=pk).order_by('parlamentar') num_presentes = len(presentes) data_sessao = materia.sessao_plenaria.data_inicio