perf: user 序列化添加is_org_admin 字段 (#10728)

Co-authored-by: feng <1304903146@qq.com>
pull/10731/head
fit2bot 2023-06-15 12:15:04 +08:00 committed by GitHub
parent b19d9c8754
commit 852435c7d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -1,6 +1,5 @@
# -*- coding: utf-8 -*-
#
import phonenumbers
from functools import partial
@ -132,7 +131,7 @@ class UserSerializer(RolesSerializerMixin, CommonBulkSerializerMixin, serializer
"last_login", "date_updated" # 日期字段
]
fields_bool = [
"is_superuser",
"is_superuser", "is_org_admin",
"is_service_account", "is_valid",
"is_expired", "is_active", # 布尔字段
"is_otp_secret_key_bound", "can_public_key_auth",