Browse Source

[Update] 修改用户profile序列类2

pull/4078/head
Bai 5 years ago
parent
commit
907f0068db
  1. 2
      apps/users/serializers/user.py

2
apps/users/serializers/user.py

@ -217,7 +217,7 @@ class UserProfileSerializer(UserSerializer):
'name': {'read_only': True, 'max_length': 128},
'username': {'read_only': True, 'max_length': 128},
'email': {'read_only': True},
# 'mfa_level': {'read_only': True},
'is_first_login': {'label': _('Is first login'), 'read_only': False},
'source': {'read_only': True},
'is_valid': {'read_only': True},
'is_active': {'read_only': True},

Loading…
Cancel
Save