Explorar o código

Fixes #4150: Replace OrderedDict with Dict when rendering YAML

Saria Hajjar %!s(int64=6) %!d(string=hai) anos
pai
achega
8eea0331bf
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      netbox/utilities/templatetags/helpers.py

+ 1 - 1
netbox/utilities/templatetags/helpers.py

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