소스 검색

Fix ProgrammingError exception when annotating config context data

jeremystretch 4 년 전
부모
커밋
0e95ca7b69
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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()