aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lamb2010-01-22 06:53:03 -0800
committerRob Hudson2010-01-22 06:54:18 -0800
commitf5f29e4577fc34cb4e7b44232f36ad6e2a1b0eb9 (patch)
tree37fadc330238381f010f92a0bf9848b066d5e914
parentddd021bfc101d55a1ed69a5514491296705dda6c (diff)
downloaddjango-debug-toolbar-f5f29e4577fc34cb4e7b44232f36ad6e2a1b0eb9.tar.bz2
Updated to not display EXPLAIN/PROFILE links for non-SELECT queries.
Signed-off-by: Rob Hudson <rob@cogit8.org>
-rw-r--r--debug_toolbar/templates/debug_toolbar/panels/sql.html8
1 files changed, 4 insertions, 4 deletions
diff --git a/debug_toolbar/templates/debug_toolbar/panels/sql.html b/debug_toolbar/templates/debug_toolbar/panels/sql.html
index c606d27..9ed87ca 100644
--- a/debug_toolbar/templates/debug_toolbar/panels/sql.html
+++ b/debug_toolbar/templates/debug_toolbar/panels/sql.html
@@ -16,10 +16,10 @@
{% if query.params %}
{% if query.is_select %}
<a class="remoteCall" href="/__debug__/sql_select/?sql={{ query.raw_sql|urlencode }}&amp;params={{ query.params|urlencode }}&amp;duration={{ query.duration|floatformat:"2"|urlencode }}&amp;hash={{ query.hash }}">SELECT</a><br />
- {% endif %}
- <a class="remoteCall" href="/__debug__/sql_explain/?sql={{ query.raw_sql|urlencode }}&amp;params={{ query.params|urlencode }}&amp;duration={{ query.duration|floatformat:"2"|urlencode }}&amp;hash={{ query.hash }}">EXPLAIN</a><br />
- {% if is_mysql %}
- <a class="remoteCall" href="/__debug__/sql_profile/?sql={{ query.raw_sql|urlencode }}&amp;params={{ query.params|urlencode }}&amp;duration={{ query.duration|floatformat:"2"|urlencode }}&amp;hash={{ query.hash }}">PROFILE</a><br />
+ <a class="remoteCall" href="/__debug__/sql_explain/?sql={{ query.raw_sql|urlencode }}&amp;params={{ query.params|urlencode }}&amp;duration={{ query.duration|floatformat:"2"|urlencode }}&amp;hash={{ query.hash }}">EXPLAIN</a><br />
+ {% if is_mysql %}
+ <a class="remoteCall" href="/__debug__/sql_profile/?sql={{ query.raw_sql|urlencode }}&amp;params={{ query.params|urlencode }}&amp;duration={{ query.duration|floatformat:"2"|urlencode }}&amp;hash={{ query.hash }}">PROFILE</a><br />
+ {% endif %}
{% endif %}
{% endif %}
</td>