diff options
| author | Rob Hudson | 2008-12-09 12:44:07 -0800 | 
|---|---|---|
| committer | Rob Hudson | 2008-12-09 12:44:07 -0800 | 
| commit | 64794a5a1d342ffeceae9ddaa55c81384d54702f (patch) | |
| tree | c4d217a54260633516f47e6b9695156b3892276a /debug_toolbar/templates | |
| parent | 3b393d7b7fd3f134b5011462e2206f1e1f9144e5 (diff) | |
| download | django-debug-toolbar-64794a5a1d342ffeceae9ddaa55c81384d54702f.tar.bz2 | |
Only show the SQL profile if we're using a MySQL database backend.
Diffstat (limited to 'debug_toolbar/templates')
| -rw-r--r-- | debug_toolbar/templates/debug_toolbar/panels/sql.html | 4 | 
1 files changed, 3 insertions, 1 deletions
diff --git a/debug_toolbar/templates/debug_toolbar/panels/sql.html b/debug_toolbar/templates/debug_toolbar/panels/sql.html index f6ff64f..7de2220 100644 --- a/debug_toolbar/templates/debug_toolbar/panels/sql.html +++ b/debug_toolbar/templates/debug_toolbar/panels/sql.html @@ -15,7 +15,9 @@  				{% if query.params %}  					<a class="remoteCall" href="/__debug__/sql_select/?sql={{ query.raw_sql|urlencode }}¶ms={{ query.params|urlencode }}&time={{ query.time|floatformat:"2"|urlencode }}&hash={{ query.hash }}">SELECT</a>  					<a class="remoteCall" href="/__debug__/sql_explain/?sql={{ query.raw_sql|urlencode }}¶ms={{ query.params|urlencode }}&time={{ query.time|floatformat:"2"|urlencode }}&hash={{ query.hash }}">EXPLAIN</a> -					<a class="remoteCall" href="/__debug__/sql_profile/?sql={{ query.raw_sql|urlencode }}¶ms={{ query.params|urlencode }}&time={{ query.time|floatformat:"2"|urlencode }}&hash={{ query.hash }}">PROFILE</a> +					{% if is_mysql %} +						<a class="remoteCall" href="/__debug__/sql_profile/?sql={{ query.raw_sql|urlencode }}¶ms={{ query.params|urlencode }}&time={{ query.time|floatformat:"2"|urlencode }}&hash={{ query.hash }}">PROFILE</a> +					{% endif %}  				{% endif %}  				</td>  				<td class="syntax">{{ query.sql|safe }}</td>  | 
