From e4c6fab01146a6e0c3d9354edb048a2dbda52f77 Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Sat, 17 Aug 2024 00:26:22 -0400 Subject: [PATCH] doorcontrol: Simplify querystring handling using new `querystring` tag --- doorcontrol/templates/doorcontrol/access_report.dj.html | 2 +- doorcontrol/views.py | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/doorcontrol/templates/doorcontrol/access_report.dj.html b/doorcontrol/templates/doorcontrol/access_report.dj.html index 82ca8c2..31e57a2 100644 --- a/doorcontrol/templates/doorcontrol/access_report.dj.html +++ b/doorcontrol/templates/doorcontrol/access_report.dj.html @@ -10,7 +10,7 @@ {% for report_name, report_url in report_types %} {% endfor %} diff --git a/doorcontrol/views.py b/doorcontrol/views.py index c9ceebf..b94bcad 100644 --- a/doorcontrol/views.py +++ b/doorcontrol/views.py @@ -98,11 +98,6 @@ class BaseAccessReport( context["selected_report"] = self._selected_report() context["items_per_page"] = self.get_paginate_by(None) - query_params = self.request.GET.copy() - if "page" in query_params: - query_params.pop("page") - context["query_params"] = query_params.urlencode() - return context