From 3f81a95105381a0ffabc46ae6ab84d69ace89720 Mon Sep 17 00:00:00 2001 From: Chris Lamb Date: Wed, 14 Oct 2009 14:45:51 +0100 Subject: Show context where SQL query originated from template Signed-off-by: Chris Lamb Signed-off-by: Rob Hudson --- debug_toolbar/templates/debug_toolbar/panels/sql.html | 11 +++++++++++ 1 file changed, 11 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 038deaf..331306b 100644 --- a/debug_toolbar/templates/debug_toolbar/panels/sql.html +++ b/debug_toolbar/templates/debug_toolbar/panels/sql.html @@ -47,6 +47,17 @@ {% endfor %} + {% if query.template_info %} + + {% for line in query.template_info.context %} + + + + + {% endfor %} +
{{ line.num }}
{{ line.content }}
+

{{ query.template_info.name|default:"(unknown)" }}

+ {% endif %} {% endif %} -- cgit v1.2.3