Skip to content

Commit

Permalink
feat: user fields CURD #1205
Browse files Browse the repository at this point in the history
  • Loading branch information
Canway-shiisa committed Oct 8, 2023
1 parent fc30b44 commit 6e3cc05
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/bk-user/bkuser/apis/web/tenant_setting/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 6e3cc05

Please sign in to comment.