mirror of https://github.com/jumpserver/jumpserver
fix: 修复创建资产资源 dashboard 不变化的问题 (#9471)
Co-authored-by: Aaron3S <chenyang@fit2cloud.com>pull/9472/head
parent
f3405b0937
commit
ab76d8cce0
|
@ -103,8 +103,9 @@ def on_asset_post_delete(instance: Asset, using, **kwargs):
|
|||
)
|
||||
|
||||
|
||||
def resend_to_asset_signals(sender, signal, **kwargs):
|
||||
signal.send(sender=Asset, **kwargs)
|
||||
@on_transaction_commit
|
||||
def resend_to_asset_signals(sender, signal, instance, **kwargs):
|
||||
signal.send(sender=Asset, instance=instance.asset_ptr, **kwargs)
|
||||
|
||||
|
||||
for model in (Host, Database, Device, Web, Cloud):
|
||||
|
|
Loading…
Reference in New Issue