mirror of https://github.com/jumpserver/jumpserver
fix: 用户ProfileAPI设置is_first_login不是可读写
parent
6703ab9a77
commit
8ced6f1168
|
@ -237,6 +237,9 @@ class UserProfileSerializer(UserSerializer):
|
|||
'public_key_comment', 'public_key_hash_md5', 'admin_or_audit_orgs', 'current_org_roles',
|
||||
'guide_url', 'user_all_orgs'
|
||||
]
|
||||
read_only_fields = [
|
||||
'date_joined', 'last_login', 'created_by', 'source'
|
||||
]
|
||||
extra_kwargs = dict(UserSerializer.Meta.extra_kwargs)
|
||||
extra_kwargs.update({
|
||||
'name': {'read_only': True, 'max_length': 128},
|
||||
|
|
Loading…
Reference in New Issue