From e7c335fb2c68a11dc1816dd39a3b00d9153196a1 Mon Sep 17 00:00:00 2001
From: Yue Du
Date: Fri, 27 Dec 2013 21:08:27 +0800
Subject: [PATCH] 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.
---
debug_toolbar/templates/debug_toolbar/panels/sql_explain.html | 4 +++-
debug_toolbar/templates/debug_toolbar/panels/sql_profile.html | 4 +++-
debug_toolbar/templates/debug_toolbar/panels/sql_select.html | 4 +++-
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 7c8514820..da9b120e2 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 %}
{% trans "Back" %}
{% trans "SQL explained" %}
@@ -33,3 +33,5 @@
{% trans "SQL explained" %}
+
+
diff --git a/debug_toolbar/templates/debug_toolbar/panels/sql_profile.html b/debug_toolbar/templates/debug_toolbar/panels/sql_profile.html
index c6676be5f..af70d924c 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 %}
{% trans "Back" %}
{% trans "SQL profiled" %}
@@ -40,3 +40,5 @@
{% trans "SQL profiled" %}
{% endif %}
+
+
diff --git a/debug_toolbar/templates/debug_toolbar/panels/sql_select.html b/debug_toolbar/templates/debug_toolbar/panels/sql_select.html
index 7d587bd61..60882d399 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 %}
{% trans "Back" %}
{% trans "SQL selected" %}
@@ -37,3 +37,5 @@
{% trans "SQL selected" %}
{% endif %}
+
+