diff --git a/apps/perms/serializers/user_permission.py b/apps/perms/serializers/user_permission.py index c7390b2ec..f03177e8d 100644 --- a/apps/perms/serializers/user_permission.py +++ b/apps/perms/serializers/user_permission.py @@ -41,7 +41,7 @@ class AssetPermedSerializer(OrgResourceModelSerializerMixin, ResourceLabelsMixin @classmethod def setup_eager_loading(cls, queryset): """ Perform necessary eager loading of data. """ - queryset = queryset.prefetch_related('zone', 'nodes', "labels", "labels__label") \ + queryset = queryset.prefetch_related('zone', 'nodes', 'labels', 'labels__label') \ .prefetch_related('platform') \ .annotate(category=F("platform__category")) \ .annotate(type=F("platform__type"))