From ef06a5362feac0ec0ed3839562ebe37e5c123512 Mon Sep 17 00:00:00 2001 From: Edward Oliveira Date: Tue, 22 Nov 2022 11:09:19 -0300 Subject: [PATCH] =?UTF-8?q?Corrige=20erro=20em=20pagina=C3=A7=C3=A3o?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sapl/base/views.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sapl/base/views.py b/sapl/base/views.py index fc887f42c..3bbe7d6ac 100644 --- a/sapl/base/views.py +++ b/sapl/base/views.py @@ -2281,6 +2281,12 @@ class PesquisarAuditLogView(FilterView): paginator = context["paginator"] page_obj = context["page_obj"] + qr = self.request.GET.copy() + if 'page' in qr: + del qr['page'] + context['filter_url'] = ('&' + qr.urlencode()) if len(qr) > 0 else '' + context['show_results'] = show_results_filter_set(qr) + context.update({ "page_range": make_pagination( page_obj.number, paginator.num_pages