aboutsummaryrefslogtreecommitdiffstats
path: root/debug_toolbar
diff options
context:
space:
mode:
Diffstat (limited to 'debug_toolbar')
-rw-r--r--debug_toolbar/panels/template.py13
1 files changed, 6 insertions, 7 deletions
diff --git a/debug_toolbar/panels/template.py b/debug_toolbar/panels/template.py
index 642cd3c..c3dc986 100644
--- a/debug_toolbar/panels/template.py
+++ b/debug_toolbar/panels/template.py
@@ -85,15 +85,14 @@ class TemplateDebugPanel(DebugPanel):
for context_layer in context_data.dicts:
for key, value in context_layer.items():
# Replace any request elements - they have a large
- # unicode representation. The request data is already
- # made available from the Request Vars panel.
+ # unicode representation and the request data is
+ # already made available from the Request Vars panel.
if isinstance(value, http.HttpRequest):
- context_layer[key] = '<request>'
- # Remove the debugging sql_queries element from the
- # context. The SQL data is already made available from
- # the SQL panel.
+ context_layer[key] = '<<request>>'
+ # Replace the debugging sql_queries element. The SQL
+ # data is already made available from the SQL panel.
elif key == 'sql_queries' and isinstance(value, list):
- del context_layer[key]
+ context_layer[key] = '<<sql_queries>>'
try:
context_list.append(pformat(context_layer))
except UnicodeEncodeError: