diff options
| author | Rob Hudson | 2009-11-27 13:45:48 -0800 |
|---|---|---|
| committer | Rob Hudson | 2009-11-27 13:45:48 -0800 |
| commit | 3f246ac43875dca9ffe316874cb3702b6089e1f2 (patch) | |
| tree | 5650da1278ab0008e41c6b033b9aadda8b84cbd1 /debug_toolbar/panels | |
| parent | 7c479a64c631f9c4b02022ffdfde525175e7f526 (diff) | |
| download | django-debug-toolbar-3f246ac43875dca9ffe316874cb3702b6089e1f2.tar.bz2 | |
Replaced full repr of LANGUAGES to trim template context.
Diffstat (limited to 'debug_toolbar/panels')
| -rw-r--r-- | debug_toolbar/panels/template.py | 3 |
1 files changed, 3 insertions, 0 deletions
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] = '<<sql_queries>>' + # Replace LANGUAGES, which is available in i18n context processor + elif key == 'LANGUAGES' and isinstance(value, tuple): + context_layer[key] = '<<languages>>' try: context_list.append(pformat(context_layer)) except UnicodeEncodeError: |
