Browse Source

perf: 用户账号导出去除is_service_account (#12388)

Co-authored-by: feng <1304903146@qq.com>
pull/12394/head
fit2bot 11 months ago committed by GitHub
parent
commit
55575e9f7f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      apps/users/serializers/user.py

2
apps/users/serializers/user.py

@ -147,7 +147,7 @@ class UserSerializer(RolesSerializerMixin, CommonBulkSerializerMixin, ResourceLa
# 在serializer 上定义的字段
fields_custom = ["login_blocked", "password_strategy"]
fields = fields_verbose + fields_fk + fields_m2m + fields_custom
fields_unexport = ["avatar_url", ]
fields_unexport = ["avatar_url", "is_service_account"]
read_only_fields = [
"date_joined", "last_login", "created_by",

Loading…
Cancel
Save