From 9ed77508a72fc7e998badfe670926d0cd4dbb385 Mon Sep 17 00:00:00 2001 From: AlanCoding Date: Mon, 23 May 2016 16:48:21 -0400 Subject: [PATCH] fix naming problem with ActivityStream logging --- awx/main/signals.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/main/signals.py b/awx/main/signals.py index 64402953a0..f7b1845ae9 100644 --- a/awx/main/signals.py +++ b/awx/main/signals.py @@ -409,7 +409,7 @@ def activity_stream_associate(sender, instance, **kwargs): # If the m2m is from the User side we need to # set the content_object of the Role for our entry. if type(instance) == User and role.content_object is not None: - getattr(activity_entry, role.content_type.name).add(role.content_object) + getattr(activity_entry, role.content_type.name.replace(' ', '_')).add(role.content_object) activity_entry.role.add(role) activity_entry.object_relationship_type = obj_rel