diff --git a/django/template/debug.py b/django/template/debug.py index aa42b2b5ca..629739f720 100644 --- a/django/template/debug.py +++ b/django/template/debug.py @@ -88,7 +88,7 @@ class DebugVariableNode(VariableNode): def render(self, context): try: output = self.filter_expression.resolve(context) - output = localize(value, use_l10n=use_l10n) + output = localize(output, use_l10n=context.use_l10n) output = force_unicode(output) except TemplateSyntaxError, e: if not hasattr(e, 'source'):