From 5c6f1730d5462262f339fe762b93d16a1a59d4f9 Mon Sep 17 00:00:00 2001 From: ibuler Date: Tue, 23 Nov 2021 10:20:16 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E7=B3=BB=E7=BB=9F=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E5=AF=86=E7=A0=81=E4=B8=8D=E5=86=8Dtrim=E7=A9=BA=E6=A0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/assets/serializers/system_user.py | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/assets/serializers/system_user.py b/apps/assets/serializers/system_user.py index b86740f8c..0b7af10bd 100644 --- a/apps/assets/serializers/system_user.py +++ b/apps/assets/serializers/system_user.py @@ -48,6 +48,7 @@ class SystemUserSerializer(AuthSerializerMixin, BulkOrgResourceModelSerializer): extra_kwargs = { 'password': { "write_only": True, + 'trim_whitespace': False, "validators": [validate_password_contains_left_double_curly_bracket] }, 'public_key': {"write_only": True},