From 85bd265bd5fe9dda44c67c2b2e618a79c2fb8fdc Mon Sep 17 00:00:00 2001 From: Rob Hudson Date: Fri, 23 Jan 2009 10:59:59 -0800 Subject: Add preliminary support for stacktraces to see where SQL queries are coming from. I'm wanting to test this a bit more before I merge it in fully. Feedback welcome.--- .../templates/debug_toolbar/panels/sql.html | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'debug_toolbar/templates') diff --git a/debug_toolbar/templates/debug_toolbar/panels/sql.html b/debug_toolbar/templates/debug_toolbar/panels/sql.html index 7de2220..1896e3c 100644 --- a/debug_toolbar/templates/debug_toolbar/panels/sql.html +++ b/debug_toolbar/templates/debug_toolbar/panels/sql.html @@ -4,6 +4,7 @@ Time (ms) Action + Stacktrace Query @@ -20,6 +21,27 @@ {% endif %} {% endif %} + + {% if query.stacktrace %} +
Toggle Stacktrace
+ + {% endif %} + {{ query.sql|safe }} {% endfor %} -- cgit v1.2.3