Browse Source

Arruma paginação de Materia Legislativa

Signed-off-by: Luciano Almeida <lucianoalmeida@interlegis.leg.br>
pull/645/head
Luciano Almeida 8 years ago
parent
commit
1eda96dba1
  1. 7
      sapl/materia/views.py

7
sapl/materia/views.py

@ -1034,6 +1034,13 @@ class MateriaLegislativaPesquisaView(FilterView):
qr = self.request.GET.copy() qr = self.request.GET.copy()
if 'page' in qr: if 'page' in qr:
del qr['page'] 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 '' context['filter_url'] = ('&' + qr.urlencode()) if len(qr) > 0 else ''
return context return context

Loading…
Cancel
Save