diff options
| author | Rob Hudson | 2009-01-23 11:45:14 -0800 |
|---|---|---|
| committer | Rob Hudson | 2009-01-23 11:45:14 -0800 |
| commit | 1a52939905b7a43a9cf83cde6216a98cc5cbc595 (patch) | |
| tree | e819c62de2aa6ef4cf895a8ae5bd1a9387433031 | |
| parent | 85bd265bd5fe9dda44c67c2b2e618a79c2fb8fdc (diff) | |
| download | django-debug-toolbar-1a52939905b7a43a9cf83cde6216a98cc5cbc595.tar.bz2 | |
Tuple unpacking of stacktrace variables for niceness.
| -rw-r--r-- | debug_toolbar/templates/debug_toolbar/panels/sql.html | 8 |
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> |
