Ticket #3200: views.py.patch
File views.py.patch, 912 bytes (added by , 18 years ago) |
---|
-
django/views/debug.py
107 107 'post_context': post_context, 108 108 'pre_context_lineno': pre_context_lineno + 1, 109 109 }) 110 else: 111 frames.append({ 112 'tb': tb, 113 'filename': filename, 114 'function': function, 115 'lineno': lineno + 1, 116 'vars': tb.tb_frame.f_locals.items(), 117 'id': id(tb), 118 'pre_context': '[unknown pre_context]', 119 'context_line': '[unknown context_line]', 120 'post_context': '[unknown post_context]', 121 'pre_context_lineno': '[unknown pre_context_lineno]', 122 }) 123 110 124 tb = tb.tb_next 111 125 112 126 if not frames: