diff options
| author | Chris Lamb | 2010-01-22 06:53:03 -0800 | 
|---|---|---|
| committer | Rob Hudson | 2010-01-22 06:54:18 -0800 | 
| commit | f5f29e4577fc34cb4e7b44232f36ad6e2a1b0eb9 (patch) | |
| tree | 37fadc330238381f010f92a0bf9848b066d5e914 | |
| parent | ddd021bfc101d55a1ed69a5514491296705dda6c (diff) | |
| download | django-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.html | 8 | 
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 }}&params={{ query.params|urlencode }}&duration={{ query.duration|floatformat:"2"|urlencode }}&hash={{ query.hash }}">SELECT</a><br /> -					{% endif %} -					<a class="remoteCall" href="/__debug__/sql_explain/?sql={{ query.raw_sql|urlencode }}&params={{ query.params|urlencode }}&duration={{ query.duration|floatformat:"2"|urlencode }}&hash={{ query.hash }}">EXPLAIN</a><br /> -					{% if is_mysql %} -						<a class="remoteCall" href="/__debug__/sql_profile/?sql={{ query.raw_sql|urlencode }}&params={{ query.params|urlencode }}&duration={{ query.duration|floatformat:"2"|urlencode }}&hash={{ query.hash }}">PROFILE</a><br /> +						<a class="remoteCall" href="/__debug__/sql_explain/?sql={{ query.raw_sql|urlencode }}&params={{ query.params|urlencode }}&duration={{ query.duration|floatformat:"2"|urlencode }}&hash={{ query.hash }}">EXPLAIN</a><br /> +						{% if is_mysql %} +							<a class="remoteCall" href="/__debug__/sql_profile/?sql={{ query.raw_sql|urlencode }}&params={{ query.params|urlencode }}&duration={{ query.duration|floatformat:"2"|urlencode }}&hash={{ query.hash }}">PROFILE</a><br /> +						{% endif %}  					{% endif %}  				{% endif %}  				</td> | 
