mirror of https://github.com/jumpserver/jumpserver
fix: 修改可能迁移的问题
parent
4021b1955e
commit
0858d67098
|
@ -107,8 +107,9 @@ def create_app_nodes(apps, org_id):
|
|||
'key': next_key, 'value': name, 'parent_key': parent_key,
|
||||
'full_value': full_value, 'org_id': org_id
|
||||
}
|
||||
node, created = node_model.objects.get_or_create(
|
||||
node, __ = node_model.objects.get_or_create(
|
||||
defaults=defaults, value=name, org_id=org_id,
|
||||
parent_key=parent_key
|
||||
)
|
||||
node.parent = parent
|
||||
return node
|
||||
|
|
Loading…
Reference in New Issue