Преглед изворни кода

Fix evaluation of RestrictedQuerySet

Jeremy Stretch пре 5 година
родитељ
комит
66703d8963
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      netbox/extras/models/models.py

+ 1 - 1
netbox/extras/models/models.py

@@ -538,7 +538,7 @@ class ConfigContextModel(models.Model):
 
         # Compile all config data, overwriting lower-weight values with higher-weight values where a collision occurs
         data = OrderedDict()
-        for context in ConfigContext.objects.get_for_object(self):
+        for context in ConfigContext.objects.unrestricted().get_for_object(self):
             data = deepmerge(data, context.data)
 
         # If the object has local config context data defined, merge it last