mirror of https://github.com/jumpserver/jumpserver
Merge pull request #10978 from jumpserver/pr@dev@fix_platform_setting
perf: 优化平台创建时,协议 setting 必填pull/10981/head
commit
f686f9f107
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue