From 3f246ac43875dca9ffe316874cb3702b6089e1f2 Mon Sep 17 00:00:00 2001 From: Rob Hudson Date: Fri, 27 Nov 2009 13:45:48 -0800 Subject: Replaced full repr of LANGUAGES to trim template context. --- debug_toolbar/panels/template.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'debug_toolbar') diff --git a/debug_toolbar/panels/template.py b/debug_toolbar/panels/template.py index e4531c1..f6226c4 100644 --- a/debug_toolbar/panels/template.py +++ b/debug_toolbar/panels/template.py @@ -93,6 +93,9 @@ class TemplateDebugPanel(DebugPanel): # data is already made available from the SQL panel. elif key == 'sql_queries' and isinstance(value, list): context_layer[key] = '<>' + # Replace LANGUAGES, which is available in i18n context processor + elif key == 'LANGUAGES' and isinstance(value, tuple): + context_layer[key] = '<>' try: context_list.append(pformat(context_layer)) except UnicodeEncodeError: -- cgit v1.2.3