From d5d147cd5c477f8a5305accd26e114232a53e87f Mon Sep 17 00:00:00 2001 From: Talitha Pumar Date: Thu, 30 Aug 2018 16:56:03 -0100 Subject: [PATCH] Update views.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adiciona o object_list para ordenação --- sapl/norma/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sapl/norma/views.py b/sapl/norma/views.py index d55fba19e..c4a171da2 100644 --- a/sapl/norma/views.py +++ b/sapl/norma/views.py @@ -87,7 +87,8 @@ class NormaPesquisaView(FilterView): context['title'] = _('Pesquisar Norma Jurídica') self.filterset.form.fields['o'].label = _('Ordenação') - + + qs = self.object_list if 'o' in self.request.GET and not self.request.GET['o']: qs = qs.order_by('-ano', 'tipo', '-numero')