Skip to content

Commit 64c0059

Browse files
Merge pull request #4155 from hSaria/4150-yaml-nested-tags
Fixes #4150: Replace OrderedDict with Dict when rendering YAML
2 parents d0ece2e + 8eea033 commit 64c0059

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

netbox/utilities/templatetags/helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def render_yaml(value):
8282
"""
8383
Render a dictionary as formatted YAML.
8484
"""
85-
return yaml.dump(dict(value))
85+
return yaml.dump(json.loads(json.dumps(value)))
8686

8787

8888
@register.filter()

0 commit comments

Comments
 (0)