fix: 修复网域导入500问题(不支持修改gateways)

pull/9362/head
Bai 2 years ago committed by Jiangjie.Bai
parent 4cca518543
commit f6da14b80d

@ -13,7 +13,7 @@ __all__ = ['DomainSerializer', 'DomainWithGatewaySerializer']
class DomainSerializer(BulkOrgResourceModelSerializer):
gateways = ObjectRelatedField(
many=True, required=False, queryset=Asset.objects, label=_('Gateway')
many=True, required=False, label=_('Gateway'), read_only=True,
)
assets = ObjectRelatedField(
many=True, required=False, queryset=Asset.objects, label=_('Asset')

Loading…
Cancel
Save