aboutsummaryrefslogtreecommitdiffstats
path: root/debug_toolbar
diff options
context:
space:
mode:
authorJannis Leidel2014-01-17 02:20:01 -0800
committerJannis Leidel2014-01-17 02:20:01 -0800
commit8116c4bc6749aad11a200963de7c83d651c100c3 (patch)
tree069b6f279b483e6ff2c27503e931a10a7e26d566 /debug_toolbar
parentcad93f57a0749fbc22a9dbc777193ace38013b0d (diff)
parentfb986108404abcaa4639514adbb75bc5a446e270 (diff)
downloaddjango-debug-toolbar-8116c4bc6749aad11a200963de7c83d651c100c3.tar.bz2
Merge pull request #513 from ifduyue/fix-ifequal-mysql-engine
Fix: query.engine can be 'MySQLdb' for msyql.
Diffstat (limited to 'debug_toolbar')
-rw-r--r--debug_toolbar/templates/debug_toolbar/panels/sql.html4
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 %}