mirror of https://github.com/jumpserver/jumpserver
fix: 修复创建资产不传nodes时报错的问题 & 修复Option资产API时报JSON序列化失败的问题
parent
fd203c67c3
commit
f5d8e125cb
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue