From 1eda96dba1fc1beb74e867f351b18165b8f05ee9 Mon Sep 17 00:00:00 2001 From: Luciano Almeida Date: Tue, 27 Sep 2016 13:51:15 -0300 Subject: [PATCH] =?UTF-8?q?Arruma=20pagina=C3=A7=C3=A3o=20de=20Materia=20L?= =?UTF-8?q?egislativa?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Luciano Almeida --- sapl/materia/views.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/sapl/materia/views.py b/sapl/materia/views.py index afc1f091f..bd58c940b 100644 --- a/sapl/materia/views.py +++ b/sapl/materia/views.py @@ -1034,6 +1034,13 @@ class MateriaLegislativaPesquisaView(FilterView): qr = self.request.GET.copy() if 'page' in qr: del qr['page'] + + paginator = context['paginator'] + page_obj = context['page_obj'] + + context['page_range'] = make_pagination( + page_obj.number, paginator.num_pages) + context['filter_url'] = ('&' + qr.urlencode()) if len(qr) > 0 else '' return context