From f85daa088f869b7d33b7cd1e5dedd855a1205cd5 Mon Sep 17 00:00:00 2001 From: feng <1304903146@qq.com> Date: Fri, 21 Apr 2023 14:53:24 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E5=88=9B=E5=BB=BA=E8=B5=84=E4=BA=A7=20?= =?UTF-8?q?nodes=20=E5=8F=AF=E4=B8=BA=E7=A9=BA=20=E9=BB=98=E8=AE=A4=20defa?= =?UTF-8?q?ult?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/assets/serializers/asset/common.py | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/assets/serializers/asset/common.py b/apps/assets/serializers/asset/common.py index 311749d61..0fd14eec9 100644 --- a/apps/assets/serializers/asset/common.py +++ b/apps/assets/serializers/asset/common.py @@ -145,6 +145,7 @@ class AssetSerializer(BulkOrgResourceModelSerializer, WritableNestedModelSeriali 'name': {'label': _("Name")}, 'address': {'label': _('Address')}, 'nodes_display': {'label': _('Node path')}, + 'nodes': {'allow_empty': True}, } def __init__(self, *args, **kwargs):