Create activity stream event on group delete

Normally this is bypassed for recursive deletes, this manually creates
one beyond the bypass
This commit is contained in:
Matthew Jones 2016-06-27 16:53:07 -04:00
parent b126d0a529
commit 8055bcc94e

View File

@ -524,7 +524,7 @@ class Group(CommonModelNameNotUnique):
def delete_recursive(self):
from awx.main.utils import ignore_inventory_computed_fields
from awx.main.tasks import update_inventory_computed_fields
from awx.main.signals import disable_activity_stream
from awx.main.signals import disable_activity_stream, activity_stream_delete
def mark_actual():
@ -582,7 +582,7 @@ class Group(CommonModelNameNotUnique):
with ignore_inventory_computed_fields():
with disable_activity_stream():
mark_actual()
activity_stream_delete(None, self)
def update_computed_fields(self):
'''