Ticket #23060: 23060.diff

File 23060.diff, 538 bytes (added by QingFeng, 10 years ago)
  • django/template/defaulttags.py

    diff --git a/django/template/defaulttags.py b/django/template/defaulttags.py
    index ceeb7f3..806ebeb 100644
    a b class CycleNode(Node):  
    8787class DebugNode(Node):
    8888    def render(self, context):
    8989        from pprint import pformat
    90         output = [pformat(val) for val in context]
     90        output = [smart_text(pformat(val)) for val in context]
    9191        output.append('\n\n')
    9292        output.append(pformat(sys.modules))
    9393        return ''.join(output)
Back to Top