mirror of
https://github.com/ansible/awx.git
synced 2024-11-02 18:21:12 +03:00
AC-569 Fix signal handler for updating computed fields on inventory models.
This commit is contained in:
parent
a32fc02323
commit
04824c8477
@ -41,8 +41,6 @@ def update_inventory_computed_fields(sender, **kwargs):
|
||||
sender_name = unicode(sender._meta.verbose_name)
|
||||
if kwargs['signal'] == post_save:
|
||||
sender_action = 'saved'
|
||||
if instance.active: # No need to update for active instances.
|
||||
return
|
||||
elif kwargs['signal'] == post_delete:
|
||||
sender_action = 'deleted'
|
||||
elif kwargs['signal'] == m2m_changed and kwargs['action'] in ('post_add', 'post_remove', 'post_clear'):
|
||||
|
Loading…
Reference in New Issue
Block a user