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

Upgrade Django to 3.2b1

This commit is contained in:
Jeremy Stretch
2021-02-24 19:00:14 -05:00
parent b1cd634ab4
commit 0a6ebdee48
5 changed files with 8 additions and 14 deletions

View File

@ -1,7 +1,8 @@
from django.contrib.postgres.aggregates import JSONBAgg
from django.db.models import OuterRef, Subquery, Q
from extras.models.tags import TaggedItem
from utilities.query_functions import EmptyGroupByJSONBAgg, OrderableJSONBAgg
from utilities.query_functions import EmptyGroupByJSONBAgg
from utilities.querysets import RestrictedQuerySet
@ -47,7 +48,7 @@ class ConfigContextQuerySet(RestrictedQuerySet):
if aggregate_data:
return queryset.aggregate(
config_context_data=OrderableJSONBAgg('data', ordering=['weight', 'name'])
config_context_data=JSONBAgg('data', ordering=['weight', 'name'])
)['config_context_data']
return queryset