aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYue Du2013-12-27 21:08:27 +0800
committerYue Du2013-12-27 21:08:27 +0800
commite7c335fb2c68a11dc1816dd39a3b00d9153196a1 (patch)
tree8ff137023814602f3e69afbcc0e616889d22ff99
parente1141b678177ce359bad5b06ce833da2e53c4613 (diff)
downloaddjango-debug-toolbar-e7c335fb2c68a11dc1816dd39a3b00d9153196a1.tar.bz2
Fix: sql panel sql uncollapse
sql_select.html, sql_explain.html, sql_profile.html These three templates all need toolbar.sql.js, otherwise the `select ...` cannot be uncollapsed.
-rw-r--r--debug_toolbar/templates/debug_toolbar/panels/sql_explain.html4
-rw-r--r--debug_toolbar/templates/debug_toolbar/panels/sql_profile.html4
-rw-r--r--debug_toolbar/templates/debug_toolbar/panels/sql_select.html4
3 files changed, 9 insertions, 3 deletions
diff --git a/debug_toolbar/templates/debug_toolbar/panels/sql_explain.html b/debug_toolbar/templates/debug_toolbar/panels/sql_explain.html
index 7c85148..da9b120 100644
--- a/debug_toolbar/templates/debug_toolbar/panels/sql_explain.html
+++ b/debug_toolbar/templates/debug_toolbar/panels/sql_explain.html
@@ -1,4 +1,4 @@
-{% load i18n %}
+{% load i18n %}{% load static from staticfiles %}
<div class="djDebugPanelTitle">
<a class="djDebugClose djDebugBack" href="">{% trans "Back" %}</a>
<h3>{% trans "SQL explained" %}</h3>
@@ -33,3 +33,5 @@
</table>
</div>
</div>
+
+<script src="{% static 'debug_toolbar/js/toolbar.sql.js' %}"></script>
diff --git a/debug_toolbar/templates/debug_toolbar/panels/sql_profile.html b/debug_toolbar/templates/debug_toolbar/panels/sql_profile.html
index c6676be..af70d92 100644
--- a/debug_toolbar/templates/debug_toolbar/panels/sql_profile.html
+++ b/debug_toolbar/templates/debug_toolbar/panels/sql_profile.html
@@ -1,4 +1,4 @@
-{% load i18n %}
+{% load i18n %}{% load static from staticfiles %}
<div class="djDebugPanelTitle">
<a class="djDebugClose djDebugBack" href="">{% trans "Back" %}</a>
<h3>{% trans "SQL profiled" %}</h3>
@@ -40,3 +40,5 @@
{% endif %}
</div>
</div>
+
+<script src="{% static 'debug_toolbar/js/toolbar.sql.js' %}"></script>
diff --git a/debug_toolbar/templates/debug_toolbar/panels/sql_select.html b/debug_toolbar/templates/debug_toolbar/panels/sql_select.html
index 7d587bd..60882d3 100644
--- a/debug_toolbar/templates/debug_toolbar/panels/sql_select.html
+++ b/debug_toolbar/templates/debug_toolbar/panels/sql_select.html
@@ -1,4 +1,4 @@
-{% load i18n %}
+{% load i18n %}{% load static from staticfiles %}
<div class="djDebugPanelTitle">
<a class="djDebugClose djDebugBack" href="">{% trans "Back" %}</a>
<h3>{% trans "SQL selected" %}</h3>
@@ -37,3 +37,5 @@
{% endif %}
</div>
</div>
+
+<script src="{% static 'debug_toolbar/js/toolbar.sql.js' %}"></script>