Browse Source

fix: 修复创建资产关联所在节点的系统用户时没有设置组织ID的问题

pull/6458/head
Bai 3 years ago committed by Jiangjie.Bai
parent
commit
47e8ad3aac
  1. 3
      apps/assets/signals_handler/asset.py

3
apps/assets/signals_handler/asset.py

@ -96,7 +96,8 @@ def on_asset_nodes_add(instance, action, reverse, pk_set, **kwargs):
asset_ids_to_push.append(asset_id)
to_create.append(m2m_model(
systemuser_id=system_user_id,
asset_id=asset_id
asset_id=asset_id,
org_id=instance.org_id
))
if asset_ids_to_push:
push_system_user_to_assets.delay(system_user_id, asset_ids_to_push)

Loading…
Cancel
Save