From 147a68f6cf4bdfc28bde54c1f1c59609868abd9b Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Tue, 30 Aug 2022 10:35:37 +0100 Subject: [PATCH] Fix source variable name in modal opening --- core/templates/ui/drilldown/drilldown.html | 2 +- core/views/ui/drilldown.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/core/templates/ui/drilldown/drilldown.html b/core/templates/ui/drilldown/drilldown.html index 4349333..c50fd14 100644 --- a/core/templates/ui/drilldown/drilldown.html +++ b/core/templates/ui/drilldown/drilldown.html @@ -9,7 +9,7 @@ hx-post="{% url 'modal_context' %}" hx-vals='{"net": "{{ params.net|escapejs }}", "num": "{{ params.num|escapejs }}", - "src": "{{ params.src|escapejs }}", + "source": "{{ params.source|escapejs }}", "channel": "{{ params.channel|escapejs }}", "time": "{{ params.time|escapejs }}", "date": "{{ params.date|escapejs }}", diff --git a/core/views/ui/drilldown.py b/core/views/ui/drilldown.py index 9e0253e..f0edcb0 100644 --- a/core/views/ui/drilldown.py +++ b/core/views/ui/drilldown.py @@ -305,7 +305,6 @@ class DrilldownContextModal(APIView): invalid = [None, False, "—", "None"] query_params = {k: v for k, v in request.data.items() if v} - for key in query_params: if query_params[key] in invalid: query_params[key] = None