Fix source variable name in modal opening
This commit is contained in:
parent
ba3124bd69
commit
147a68f6cf
|
@ -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 }}",
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue