mirror of
https://github.com/lucaspalomodevelop/netbox.git
synced 2026-03-15 17:14:51 +00:00
Fixes #4150: Replace OrderedDict with Dict when rendering YAML
This commit is contained in:
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()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user