aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 %}