Browse Source

fix: 修复修改用户信息后,绑定丢失

perf: 还原提示文案
pull/7103/head
ibuler 3 years ago committed by Jiangjie.Bai
parent
commit
d44656aa10
  1. 2
      apps/settings/serializers/other.py
  2. 2
      apps/templates/flash_message_standalone.html
  3. 1
      apps/users/serializers/user.py

2
apps/settings/serializers/other.py

@ -9,7 +9,7 @@ class OtherSettingSerializer(serializers.Serializer):
) )
OTP_ISSUER_NAME = serializers.CharField( OTP_ISSUER_NAME = serializers.CharField(
required=False, max_length=1024, label=_('OTP issuer name'), required=False, max_length=16, label=_('OTP issuer name'),
) )
OTP_VALID_WINDOW = serializers.IntegerField( OTP_VALID_WINDOW = serializers.IntegerField(
min_value=1, max_value=10, min_value=1, max_value=10,

2
apps/templates/flash_message_standalone.html

@ -31,7 +31,7 @@
{% if confirm_button %} {% if confirm_button %}
{{ confirm_button }} {{ confirm_button }}
{% else %} {% else %}
{% trans 'Go' %} {% trans 'Confirm' %}
{% endif %} {% endif %}
</a> </a>
</div> </div>

1
apps/users/serializers/user.py

@ -70,6 +70,7 @@ class UserSerializer(CommonBulkSerializerMixin, serializers.ModelSerializer):
read_only_fields = [ read_only_fields = [
'date_joined', 'last_login', 'created_by', 'is_first_login', 'date_joined', 'last_login', 'created_by', 'is_first_login',
'wecom_id', 'dingtalk_id', 'feishu_id'
] ]
extra_kwargs = { extra_kwargs = {
'password': {'write_only': True, 'required': False, 'allow_null': True, 'allow_blank': True}, 'password': {'write_only': True, 'required': False, 'allow_null': True, 'allow_blank': True},

Loading…
Cancel
Save