From 278bacbce8675b4478ec2bb68079d8a911547fac Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Fri, 29 Jun 2018 09:53:33 -0400 Subject: [PATCH] Fixed rendered config context ordering --- netbox/extras/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/netbox/extras/models.py b/netbox/extras/models.py index f92693b11..ac9a4dd8a 100644 --- a/netbox/extras/models.py +++ b/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 #