mirror of
https://github.com/ansible/awx.git
synced 2026-02-18 11:40:05 -03:30
Add job to the list of models that are filtered if a user didn't directly interface with it
This commit is contained in:
@@ -34,7 +34,7 @@ class ActivityStreamMiddleware(object):
|
|||||||
instance.save()
|
instance.save()
|
||||||
else:
|
else:
|
||||||
obj1_type_actual = instance.object1_type.split(".")[-1]
|
obj1_type_actual = instance.object1_type.split(".")[-1]
|
||||||
if obj1_type_actual in ("InventoryUpdate", "ProjectUpdate", "JobEvent") and instance.id is not None:
|
if obj1_type_actual in ("InventoryUpdate", "ProjectUpdate", "JobEvent", "Job") and instance.id is not None:
|
||||||
instance.delete()
|
instance.delete()
|
||||||
return response
|
return response
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user