From af7a00c1b1a36117ca5cb45f8d87e00427f24972 Mon Sep 17 00:00:00 2001 From: wrd <940853815@qq.com> Date: Mon, 25 Aug 2025 17:13:20 +0800 Subject: [PATCH] fix: typo --- apps/perms/serializers/user_permission.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"))