diff --git a/apps/perms/serializers/user_permission.py b/apps/perms/serializers/user_permission.py index 639fb6320..c7390b2ec 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') \ + queryset = queryset.prefetch_related('zone', 'nodes', "labels", "labels__label") \ .prefetch_related('platform') \ .annotate(category=F("platform__category")) \ .annotate(type=F("platform__type"))