mirror of
https://github.com/django/django.git
synced 2025-10-29 00:26:07 +00:00
Fixed #23060 -- Prevented UnicodeDecodeError in debug templatetag
This commit is contained in:
@@ -87,7 +87,7 @@ class CycleNode(Node):
|
||||
class DebugNode(Node):
|
||||
def render(self, context):
|
||||
from pprint import pformat
|
||||
output = [pformat(val) for val in context]
|
||||
output = [force_text(pformat(val)) for val in context]
|
||||
output.append('\n\n')
|
||||
output.append(pformat(sys.modules))
|
||||
return ''.join(output)
|
||||
|
||||
Reference in New Issue
Block a user