diff --git a/awx/main/middleware.py b/awx/main/middleware.py index 87959af432..c5982d9ed1 100644 --- a/awx/main/middleware.py +++ b/awx/main/middleware.py @@ -44,7 +44,8 @@ class ActivityStreamMiddleware(object): if isinstance(user, User) and instance.user is None: instance.user = user else: - self.isActivityStreamEvent = True - self.instances.append(instance) + if instance not in self.instances: + self.isActivityStreamEvent = True + self.instances.append(instance) else: self.isActivityStreamEvent = False