From 18d8f59bb56d357ad81d59291245e92717da8678 Mon Sep 17 00:00:00 2001 From: Bai Date: Fri, 13 Nov 2020 14:46:25 +0800 Subject: [PATCH] =?UTF-8?q?fix(system=5Fuser):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E6=9B=B4=E6=96=B0=E7=B3=BB=E7=BB=9F=E7=94=A8=E6=88=B7=E6=97=B6?= =?UTF-8?q?ad=5Fdomain=E5=AD=97=E6=AE=B5=E4=B8=BA=E7=A9=BA=E6=8F=90?= =?UTF-8?q?=E4=BA=A4=E5=A4=B1=E8=B4=A5=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/assets/serializers/system_user.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/assets/serializers/system_user.py b/apps/assets/serializers/system_user.py index 75dd4cf9d..a4f6d933c 100644 --- a/apps/assets/serializers/system_user.py +++ b/apps/assets/serializers/system_user.py @@ -45,7 +45,7 @@ class SystemUserSerializer(AuthSerializerMixin, BulkOrgResourceModelSerializer): 'assets_amount': {'label': _('Assets amount')}, 'login_mode_display': {'label': _('Login mode display')}, 'created_by': {'read_only': True}, - 'ad_domain': {'label': _('Ad domain')}, + 'ad_domain': {'required': False, 'allow_blank': True, 'label': _('Ad domain')}, } def validate_auto_push(self, value):