1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Fix ProgrammingError exception when annotating config context data

This commit is contained in:
jeremystretch
2022-02-01 14:10:25 -05:00
parent 630ff2abb4
commit 0e95ca7b69

View File

@ -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()