diff options
| author | Alex Gaynor | 2009-03-21 17:37:42 -0400 |
|---|---|---|
| committer | Alex Gaynor | 2009-03-21 17:37:42 -0400 |
| commit | 671bac94182b000be3960dc7c83e89ccef7ccf26 (patch) | |
| tree | c15d284652b46ba5c7751c42989f667f18dcd606 /debug_toolbar/templates | |
| parent | 4ffe14db039981d06aa58f3ad3c2b3472824961b (diff) | |
| parent | 30ab58a69510f3fd35e19f6be9b669d2fdf956c0 (diff) | |
| download | django-debug-toolbar-671bac94182b000be3960dc7c83e89ccef7ccf26.tar.bz2 | |
Merge commit 'rob/master'
Diffstat (limited to 'debug_toolbar/templates')
| -rw-r--r-- | debug_toolbar/templates/debug_toolbar/panels/sql.html | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/debug_toolbar/templates/debug_toolbar/panels/sql.html b/debug_toolbar/templates/debug_toolbar/panels/sql.html index 0c8e9c3..f05ea97 100644 --- a/debug_toolbar/templates/debug_toolbar/panels/sql.html +++ b/debug_toolbar/templates/debug_toolbar/panels/sql.html @@ -4,6 +4,7 @@ <tr> <th>Time (ms)</th> <th>Action</th> + <th>Stacktrace</th> <th>Query</th> </tr> </thead> @@ -20,6 +21,27 @@ {% endif %} {% endif %} </td> + <td> + {% if query.stacktrace %} + <div class="djSQLShowStacktraceDiv"><a class="djSQLShowStacktrace" href="#">Toggle Stacktrace</a></div> + <div class="djSQLHideStacktraceDiv" style="display:none;"> + <table> + <tr> + <th>Line</th> + <th>Method</th> + <th>File</th> + </tr> + {% for file, line, method in query.stacktrace %} + <tr> + <td>{{ line }}</td> + <td><pre>{{ method|escape }}<pre></td> + <td><pre>{{ file|escape }}</pre></td> + </tr> + {% endfor %} + </table> + </div> + {% endif %} + </td> <td class="syntax">{{ query.sql|safe }}</td> </tr> {% endfor %} |
