Merge pull request #4155 from hSaria/4150-yaml-nested-tags

Fixes #4150: Replace OrderedDict with Dict when rendering YAML
This commit is contained in:
Jeremy Stretch 2020-02-12 16:13:32 -05:00 committed by GitHub
commit 64c0059dd8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -82,7 +82,7 @@ def render_yaml(value):
"""
Render a dictionary as formatted YAML.
"""
return yaml.dump(dict(value))
return yaml.dump(json.loads(json.dumps(value)))
@register.filter()