fix: 修改可能迁移的问题

pull/12010/head
ibuler 2023-10-31 17:39:25 +08:00 committed by Bryan
parent 4021b1955e
commit 0858d67098
1 changed files with 2 additions and 1 deletions

View File

@ -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