Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
Adrian Holovaty authored November 20, 2005

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  django/views/debug.py
4  django/views/debug.py
@@ -25,7 +25,7 @@ def technical_500_response(request, exc_type, exc_value, tb):
25 25
             'filename' : filename,
26 26
             'function' : function,
27 27
             'lineno' : lineno,
28  
-            'vars' : tb.tb_frame.f_locals,
  28
+            'vars' : tb.tb_frame.f_locals.items(),
29 29
             'id' : id(tb),
30 30
             'pre_context' : pre_context,
31 31
             'context_line' : context_line,
@@ -253,7 +253,7 @@ def _get_lines_from_file(filename, lineno, context_lines):
253 253
               </tr>
254 254
             </thead>
255 255
             <tbody>
256  
-              {% for var in frame.vars.items|dictsort:"0" %}
  256
+              {% for var in frame.vars|dictsort:"0" %}
257 257
                 <tr>
258 258
                   <td>{{ var.0 }}</td>
259 259
                   <td class="code"><div>{{ var.1|pprint|escape }}</div></td>

0 notes on commit b5feff3

Please sign in to comment.
Something went wrong with that request. Please try again.