fix: 修复创建资产不传nodes时报错的问题 & 修复Option资产API时报JSON序列化失败的问题

pull/6010/head
Bai 2021-04-28 15:26:40 +08:00 committed by 老广
parent fd203c67c3
commit f5d8e125cb
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ def default_node():
try:
from .node import Node
root = Node.org_root()
return root
return Node.objects.filter(id=root.id)
except:
return None