@@ -51,22 +51,25 @@ def _store_template_info(self, sender, **kwargs):
51
51
52
52
context_list = []
53
53
for context_layer in context_data .dicts :
54
+ temp_layer = {}
54
55
if hasattr (context_layer , 'items' ):
55
56
for key , value in context_layer .items ():
56
57
# Replace any request elements - they have a large
57
58
# unicode representation and the request data is
58
59
# already made available from the Request Vars panel.
59
60
if isinstance (value , http .HttpRequest ):
60
- context_layer [key ] = '<<request>>'
61
+ temp_layer [key ] = '<<request>>'
61
62
# Replace the debugging sql_queries element. The SQL
62
63
# data is already made available from the SQL panel.
63
64
elif key == 'sql_queries' and isinstance (value , list ):
64
- context_layer [key ] = '<<sql_queries>>'
65
+ temp_layer [key ] = '<<sql_queries>>'
65
66
# Replace LANGUAGES, which is available in i18n context processor
66
67
elif key == 'LANGUAGES' and isinstance (value , tuple ):
67
- context_layer [key ] = '<<languages>>'
68
+ temp_layer [key ] = '<<languages>>'
69
+ else :
70
+ temp_layer [key ] = value
68
71
try :
69
- context_list .append (pformat (context_layer ))
72
+ context_list .append (pformat (temp_layer ))
70
73
except UnicodeEncodeError :
71
74
pass
72
75
kwargs ['context' ] = context_list
0 commit comments