From 6d4d6425b5d3105b2e75b60c0f6ea3e5523148ac Mon Sep 17 00:00:00 2001 From: Eduardo Edson Batista Cordeiro Alves Date: Mon, 16 May 2016 13:52:16 -0300 Subject: [PATCH] =?UTF-8?q?Ordena=20e=20remove=20campos=20da=20listagem=20?= =?UTF-8?q?da=20sess=C3=A3o=20plen=C3=A1ria=20(#459)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sessao/views.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/sessao/views.py b/sessao/views.py index b929f32d6..49c352c4a 100644 --- a/sessao/views.py +++ b/sessao/views.py @@ -173,8 +173,8 @@ class SessaoCrud(Crud): help_path = 'sessao_plenaria' class BaseMixin(crud.base.CrudBaseMixin): - list_field_names = ['numero', 'tipo', 'legislatura', - 'sessao_legislativa', 'data_inicio', 'hora_inicio'] + list_field_names = ['data_inicio', 'legislatura', 'sessao_legislativa', + 'tipo'] # FIXME!!!! corrigir referencias no codigo e remover isso!!!!! # fazer com #230 @@ -182,6 +182,9 @@ class SessaoCrud(Crud): model = SessaoPlenaria help_path = 'sessao_plenaria' + class ListView(crud.base.CrudListView): + ordering = ['-data_inicio'] + class PresencaMixin: