1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-02 18:21:12 +03:00

Make sure we check the instance list in the activity stream middleware so we aren't causing a storm of update events trying to attach the request user

This commit is contained in:
Matthew Jones 2013-11-18 11:02:23 -05:00
parent 002341468d
commit adf9f40c2e

View File

@ -44,6 +44,7 @@ class ActivityStreamMiddleware(object):
if isinstance(user, User) and instance.user is None:
instance.user = user
else:
if instance not in self.instances:
self.isActivityStreamEvent = True
self.instances.append(instance)
else: