fix: 首次登录不能提交

This commit is contained in:
xinwen
2021-09-13 11:29:03 +08:00
committed by Jiangjie.Bai
parent 36dfc4bcb8
commit 4fe715d953

View File

@@ -101,7 +101,7 @@ class UserProfileSerializer(UserSerializer):
)
mfa_level = serializers.ChoiceField(choices=MFA_LEVEL_CHOICES, label=_('MFA'), required=False)
guide_url = serializers.SerializerMethodField()
receive_backends = serializers.ListField(child=serializers.CharField())
receive_backends = serializers.ListField(child=serializers.CharField(), read_only=True)
class Meta(UserSerializer.Meta):
fields = UserSerializer.Meta.fields + [