We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4c7c693 commit a2eabfcCopy full SHA for a2eabfc
rest_framework/static/rest_framework/js/ajax-form.js
@@ -3,6 +3,12 @@ function replaceDocument(docString) {
3
4
doc.write(docString);
5
doc.close();
6
+
7
+ if (window.djdt) {
8
+ // If Django Debug Toolbar is available, reinitialize it so that
9
+ // it can show updated panels from new `docString`.
10
+ window.addEventListener("load", djdt.init);
11
+ }
12
}
13
14
function doAjaxSubmit(e) {
0 commit comments