Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed #842 -- 500 error view no longer breaks for local variable name…

…d 'items'. Thanks, rjwittams

git-svn-id: http://code.djangoproject.com/svn/django/trunk@1297 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit b5feff39632e744bd63db7064b0056717a57288e 1 parent 09f3229
@adrianholovaty adrianholovaty authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 django/views/debug.py
View
4 django/views/debug.py
@@ -25,7 +25,7 @@ def technical_500_response(request, exc_type, exc_value, tb):
'filename' : filename,
'function' : function,
'lineno' : lineno,
- 'vars' : tb.tb_frame.f_locals,
+ 'vars' : tb.tb_frame.f_locals.items(),
'id' : id(tb),
'pre_context' : pre_context,
'context_line' : context_line,
@@ -253,7 +253,7 @@ def _get_lines_from_file(filename, lineno, context_lines):
</tr>
</thead>
<tbody>
- {% for var in frame.vars.items|dictsort:"0" %}
+ {% for var in frame.vars|dictsort:"0" %}
<tr>
<td>{{ var.0 }}</td>
<td class="code"><div>{{ var.1|pprint|escape }}</div></td>
Please sign in to comment.
Something went wrong with that request. Please try again.