1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-01 16:51:11 +03:00

Capture some change info in activity stream for associate/disassociate events

This commit is contained in:
Matthew Jones 2016-06-13 12:41:50 -04:00
parent 4d52d0748f
commit 9e56913893

View File

@ -404,6 +404,12 @@ def activity_stream_associate(sender, instance, **kwargs):
if isinstance(obj1, SystemJobTemplate) or isinstance(obj2_actual, SystemJobTemplate):
continue
activity_entry = ActivityStream(
changes=json.dumps(dict(object1=object1,
object1_pk=obj1.pk,
object2=object2,
object2_pk=obj2_id,
action=action,
relationship=obj_rel)),
operation=action,
object1=object1,
object2=object2,