perf: 用户组列表中的用户添加 is_service_account 属性

This commit is contained in:
feng
2023-12-29 14:09:05 +08:00
committed by Bryan
parent 653a6752b6
commit 4b961a626b

View File

@@ -16,7 +16,8 @@ __all__ = [
class UserGroupSerializer(ResourceLabelsMixin, BulkOrgResourceModelSerializer):
users = ObjectRelatedField(
required=False, many=True, queryset=User.objects, label=_('User'),
required=False, many=True, queryset=User.objects,
attrs=("id", "name", "is_service_account"), label=_('User'),
)
class Meta: