fix: 修复创建资产资源 dashboard 不变化的问题 (#9471)

Co-authored-by: Aaron3S <chenyang@fit2cloud.com>
pull/9472/head
fit2bot 2 years ago committed by GitHub
parent f3405b0937
commit ab76d8cce0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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…
Cancel
Save