1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Fixes : Replace OrderedDict with Dict when rendering YAML

This commit is contained in:
Saria Hajjar
2020-02-12 19:59:04 +00:00
parent 2ab382eec5
commit 8eea0331bf

@ -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()