aboutsummaryrefslogtreecommitdiffstats
path: root/debug_toolbar
diff options
context:
space:
mode:
authorRob Hudson2009-01-23 11:45:14 -0800
committerRob Hudson2009-01-23 11:45:14 -0800
commit1a52939905b7a43a9cf83cde6216a98cc5cbc595 (patch)
treee819c62de2aa6ef4cf895a8ae5bd1a9387433031 /debug_toolbar
parent85bd265bd5fe9dda44c67c2b2e618a79c2fb8fdc (diff)
downloaddjango-debug-toolbar-1a52939905b7a43a9cf83cde6216a98cc5cbc595.tar.bz2
Tuple unpacking of stacktrace variables for niceness.
Diffstat (limited to 'debug_toolbar')
-rw-r--r--debug_toolbar/templates/debug_toolbar/panels/sql.html8
1 files changed, 4 insertions, 4 deletions
diff --git a/debug_toolbar/templates/debug_toolbar/panels/sql.html b/debug_toolbar/templates/debug_toolbar/panels/sql.html
index 1896e3c..d08f93e 100644
--- a/debug_toolbar/templates/debug_toolbar/panels/sql.html
+++ b/debug_toolbar/templates/debug_toolbar/panels/sql.html
@@ -31,11 +31,11 @@
<th>Method</th>
<th>File</th>
</tr>
- {% for s in query.stacktrace %}
+ {% for file, line, method in query.stacktrace %}
<tr>
- <td>{{ s.1 }}</td>
- <td><pre>{{ s.2|escape }}<pre></td>
- <td><pre>{{ s.0|escape }}</pre></td>
+ <td>{{ line }}</td>
+ <td><pre>{{ method|escape }}<pre></td>
+ <td><pre>{{ file|escape }}</pre></td>
</tr>
{% endfor %}
</table>