Explorar el Código

Fixed rendered config context ordering

Jeremy Stretch hace 7 años
padre
commit
278bacbce8
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      netbox/extras/models.py

+ 2 - 2
netbox/extras/models.py

@@ -703,11 +703,11 @@ class ConfigContextModel(models.Model):
         """
 
         # Compile all config data, overwriting lower-weight values with higher-weight values where a collision occurs
-        data = {}
+        data = OrderedDict()
         for context in ConfigContext.objects.get_for_object(self):
             data.update(context.data)
 
-        return sorted(data)
+        return data
 
 
 #