Browse Source

Merge pull request #645 from interlegis/644-paginacao-materia

fix #644 Paginação de Materia Legislativa
pull/663/head
Luciano Henrique Nunes de Almeida 8 years ago
committed by GitHub
parent
commit
34c2b61b05
  1. 7
      sapl/materia/views.py

7
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

Loading…
Cancel
Save