Fix source variable name in modal opening

This commit is contained in:
Mark Veidemanis 2022-08-30 10:35:37 +01:00
parent ba3124bd69
commit 147a68f6cf
Signed by: m
GPG Key ID: 5ACFCEED46C0904F
2 changed files with 1 additions and 2 deletions

View File

@ -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 }}",

View File

@ -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