mirror of https://github.com/jumpserver/jumpserver
fix: 修改可能迁移的问题
parent
3dc853c7f2
commit
3b30e329ab
|
@ -107,8 +107,9 @@ def create_app_nodes(apps, org_id):
|
||||||
'key': next_key, 'value': name, 'parent_key': parent_key,
|
'key': next_key, 'value': name, 'parent_key': parent_key,
|
||||||
'full_value': full_value, 'org_id': org_id
|
'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,
|
defaults=defaults, value=name, org_id=org_id,
|
||||||
|
parent_key=parent_key
|
||||||
)
|
)
|
||||||
node.parent = parent
|
node.parent = parent
|
||||||
return node
|
return node
|
||||||
|
|
Loading…
Reference in New Issue