Merge pull request #10978 from jumpserver/pr@dev@fix_platform_setting

perf: 优化平台创建时,协议 setting 必填
pull/10981/head
老广 2023-07-17 14:02:24 +08:00 committed by GitHub
commit f686f9f107
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -74,7 +74,7 @@ class PlatformProtocolSerializer(serializers.ModelSerializer):
def get_setting_serializer(self):
request = self.context.get('request')
default_field = DictSerializer()
default_field = DictSerializer(required=False)
if not request:
return default_field