From 6e3cc055ff2e9217ecd75caac9a33b01395cb826 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=91=E4=BD=A9=E7=8F=8A=5Bshiisa=5D?= Date: Sun, 8 Oct 2023 17:28:58 +0800 Subject: [PATCH] feat: user fields CURD #1205 --- src/bk-user/bkuser/apis/web/tenant_setting/serializers.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/bk-user/bkuser/apis/web/tenant_setting/serializers.py b/src/bk-user/bkuser/apis/web/tenant_setting/serializers.py index 75a7efbe7..55f0eaa93 100644 --- a/src/bk-user/bkuser/apis/web/tenant_setting/serializers.py +++ b/src/bk-user/bkuser/apis/web/tenant_setting/serializers.py @@ -134,12 +134,12 @@ def validate(self, attrs): default = attrs.get("default") if data_type == UserFieldDataType.ENUM.value: - self._validate_options(options=options) - self._validate_enum_default(default=default, options=options) + self._validate_options(options) + self._validate_enum_default(default, options) elif data_type == UserFieldDataType.MULTI_ENUM.value: - self._validate_options(options=options) - self._validate_multi_enum_default(default=default, options=options) + self._validate_options(options) + self._validate_multi_enum_default(default, options) return attrs