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/panels | |
| 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/panels')
| -rw-r--r-- | debug_toolbar/panels/sql.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/debug_toolbar/panels/sql.py b/debug_toolbar/panels/sql.py index e202994..22d2690 100644 --- a/debug_toolbar/panels/sql.py +++ b/debug_toolbar/panels/sql.py @@ -65,6 +65,7 @@ class SQLDebugPanel(DebugPanel): context = { 'queries': sql_queries, 'sql_time': self._sql_time, + 'is_mysql': settings.DATABASE_ENGINE == 'mysql', } return render_to_string('debug_toolbar/panels/sql.html', context) |
