Browse Source

Fix ProgrammingError exception when annotating config context data

jeremystretch 4 năm trước cách đây
mục cha
commit
0e95ca7b69
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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()