From f6da14b80d80de96febfda6dc15a53aa7c5fb81f Mon Sep 17 00:00:00 2001 From: Bai Date: Mon, 30 Jan 2023 14:40:00 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E7=BD=91=E5=9F=9F?= =?UTF-8?q?=E5=AF=BC=E5=85=A5500=E9=97=AE=E9=A2=98(=E4=B8=8D=E6=94=AF?= =?UTF-8?q?=E6=8C=81=E4=BF=AE=E6=94=B9gateways)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/assets/serializers/domain.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/assets/serializers/domain.py b/apps/assets/serializers/domain.py index 6692ea03b..33dcffbe1 100644 --- a/apps/assets/serializers/domain.py +++ b/apps/assets/serializers/domain.py @@ -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')