diff options
| author | Yue Du | 2013-12-27 20:33:30 +0800 |
|---|---|---|
| committer | Yue Du | 2013-12-27 20:45:12 +0800 |
| commit | fb986108404abcaa4639514adbb75bc5a446e270 (patch) | |
| tree | 615a80171f6eefb5dca57294c4ba70a908db8276 | |
| parent | e1141b678177ce359bad5b06ce833da2e53c4613 (diff) | |
| download | django-debug-toolbar-fb986108404abcaa4639514adbb75bc5a446e270.tar.bz2 | |
Fix: query.engine can be 'MySQLdb' for msyql.
query.engine could be 'mysql' or 'MySQLdb' for mysql driver.
| -rw-r--r-- | debug_toolbar/templates/debug_toolbar/panels/sql.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/debug_toolbar/templates/debug_toolbar/panels/sql.html b/debug_toolbar/templates/debug_toolbar/panels/sql.html index 4d51736..f927e5d 100644 --- a/debug_toolbar/templates/debug_toolbar/panels/sql.html +++ b/debug_toolbar/templates/debug_toolbar/panels/sql.html @@ -49,9 +49,9 @@ <button formaction="{% url 'djdt:sql_select' %}" class="remoteCall">Sel</button> <button formaction="{% url 'djdt:sql_explain' %}" class="remoteCall">Expl</button> - {% ifequal query.engine 'mysql' %} + {% if query.engine == 'mysql' or query.engine == 'MySQLdb' %} <button formaction="{% url 'djdt:sql_profile' %}" class="remoteCall">Prof</button> - {% endifequal %} + {% endif %} </form> {% endif %} {% endif %} |
