From d44656aa10d27e84b10c8f565f5cf137a84436ed Mon Sep 17 00:00:00 2001 From: ibuler Date: Thu, 28 Oct 2021 14:56:56 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E7=94=A8=E6=88=B7=E4=BF=A1=E6=81=AF=E5=90=8E=EF=BC=8C=E7=BB=91?= =?UTF-8?q?=E5=AE=9A=E4=B8=A2=E5=A4=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit perf: 还原提示文案 --- apps/settings/serializers/other.py | 2 +- apps/templates/flash_message_standalone.html | 2 +- apps/users/serializers/user.py | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/settings/serializers/other.py b/apps/settings/serializers/other.py index 65e1e5e07..a999ae6fe 100644 --- a/apps/settings/serializers/other.py +++ b/apps/settings/serializers/other.py @@ -9,7 +9,7 @@ class OtherSettingSerializer(serializers.Serializer): ) 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( min_value=1, max_value=10, diff --git a/apps/templates/flash_message_standalone.html b/apps/templates/flash_message_standalone.html index 463d6c00e..c038beb41 100644 --- a/apps/templates/flash_message_standalone.html +++ b/apps/templates/flash_message_standalone.html @@ -31,7 +31,7 @@ {% if confirm_button %} {{ confirm_button }} {% else %} - {% trans 'Go' %} + {% trans 'Confirm' %} {% endif %} diff --git a/apps/users/serializers/user.py b/apps/users/serializers/user.py index d0357db8a..021437edc 100644 --- a/apps/users/serializers/user.py +++ b/apps/users/serializers/user.py @@ -70,6 +70,7 @@ class UserSerializer(CommonBulkSerializerMixin, serializers.ModelSerializer): read_only_fields = [ 'date_joined', 'last_login', 'created_by', 'is_first_login', + 'wecom_id', 'dingtalk_id', 'feishu_id' ] extra_kwargs = { 'password': {'write_only': True, 'required': False, 'allow_null': True, 'allow_blank': True},