Explorar o código

Fix ProgrammingError exception when annotating config context data

jeremystretch %!s(int64=4) %!d(string=hai) anos
pai
achega
0e95ca7b69
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      netbox/extras/querysets.py

+ 1 - 1
netbox/extras/querysets.py

@@ -82,7 +82,7 @@ class ConfigContextModelQuerySet(RestrictedQuerySet):
                     self._get_config_context_filters()
                 ).annotate(
                     _data=EmptyGroupByJSONBAgg('data', ordering=['weight', 'name'])
-                ).values("_data")
+                ).values("_data").order_by()
             )
         ).distinct()