From be66e4c3fb34e3eb0e1dfb95894f7f5e18feb42f Mon Sep 17 00:00:00 2001 From: Eduardo Calil Date: Wed, 14 Sep 2016 11:53:16 -0300 Subject: [PATCH] Redireciona direto para a pesquisa as telas de sessao plenaria e materia legislativa --- sapl/sessao/views.py | 3 ++- sapl/templates/base.html | 5 +++-- .../materia/materialegislativa_filter.html | 17 +++++++++++------ .../sessao/sessaoplenaria_filter.html | 18 +++++++++++++----- 4 files changed, 29 insertions(+), 14 deletions(-) diff --git a/sapl/sessao/views.py b/sapl/sessao/views.py index 7dfe8c2f8..7feebdc5a 100644 --- a/sapl/sessao/views.py +++ b/sapl/sessao/views.py @@ -1989,7 +1989,8 @@ class PesquisarSessaoPlenariaView(FilterView): qs = self.get_queryset() - qs = qs.distinct() + qs = qs.distinct().order_by( + 'legislatura__id', 'data_inicio', 'numero') kwargs.update({ 'queryset': qs, diff --git a/sapl/templates/base.html b/sapl/templates/base.html index eebffba2e..363c1d7e0 100644 --- a/sapl/templates/base.html +++ b/sapl/templates/base.html @@ -81,8 +81,9 @@ {% if perms.materia.add_proposicao %} {% endif %} - - + + +