Browse Source

perf: 优化平台创建时,协议 setting 必填

pull/10978/head
ibuler 1 year ago
parent
commit
8a89ee7ac0
  1. 2
      apps/assets/serializers/platform.py

2
apps/assets/serializers/platform.py

@ -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…
Cancel
Save