perf: 创建资产 nodes 可为空 默认 default

pull/10298/head
feng 2 years ago committed by Jiangjie.Bai
parent ede53d3b6b
commit f85daa088f

@ -145,6 +145,7 @@ class AssetSerializer(BulkOrgResourceModelSerializer, WritableNestedModelSeriali
'name': {'label': _("Name")}, 'name': {'label': _("Name")},
'address': {'label': _('Address')}, 'address': {'label': _('Address')},
'nodes_display': {'label': _('Node path')}, 'nodes_display': {'label': _('Node path')},
'nodes': {'allow_empty': True},
} }
def __init__(self, *args, **kwargs): def __init__(self, *args, **kwargs):

Loading…
Cancel
Save