fix: 用户ProfileAPI设置is_first_login不是可读写

pull/5222/head
Bai 4 years ago committed by Jiangjie.Bai
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', 'public_key_comment', 'public_key_hash_md5', 'admin_or_audit_orgs', 'current_org_roles',
'guide_url', 'user_all_orgs' 'guide_url', 'user_all_orgs'
] ]
read_only_fields = [
'date_joined', 'last_login', 'created_by', 'source'
]
extra_kwargs = dict(UserSerializer.Meta.extra_kwargs) extra_kwargs = dict(UserSerializer.Meta.extra_kwargs)
extra_kwargs.update({ extra_kwargs.update({
'name': {'read_only': True, 'max_length': 128}, 'name': {'read_only': True, 'max_length': 128},

Loading…
Cancel
Save