From 8055bcc94e0f1b5bb8ad3c05bddf670b60658f43 Mon Sep 17 00:00:00 2001 From: Matthew Jones Date: Mon, 27 Jun 2016 16:53:07 -0400 Subject: [PATCH] Create activity stream event on group delete Normally this is bypassed for recursive deletes, this manually creates one beyond the bypass --- awx/main/models/inventory.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/awx/main/models/inventory.py b/awx/main/models/inventory.py index 0cb302f907..8dde9f3b3b 100644 --- a/awx/main/models/inventory.py +++ b/awx/main/models/inventory.py @@ -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): '''