Skip to content

Commit 57c38a3

Browse files
committed
Patch for store_id: MultiValueDictKeyError
1 parent b6e2354 commit 57c38a3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

debug_toolbar/static/debug_toolbar/js/toolbar.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,10 @@
8181
store_id = djDebug.getAttribute('data-store-id');
8282
if (store_id && inner.children.length === 0) {
8383
var url = djDebug.getAttribute('data-render-panel-url');
84-
url += '?' + new URLSearchParams({
85-
store_id: store_id,
86-
panel_id: this.className
87-
})
84+
var url_params = new URLSearchParams();
85+
url_params.append('store_id', store_id);
86+
url_params.append('panel_id', this.className);
87+
url += '?' + url_params.toString();
8888
ajax(url).then(function(body) {
8989
inner.previousElementSibling.remove(); // Remove AJAX loader
9090
inner.innerHTML = body;

0 commit comments

Comments
 (0)