From d564d73622902f10f46ae53d2e72090b9f93cc7b Mon Sep 17 00:00:00 2001 From: Matthew Jones Date: Wed, 20 Nov 2013 00:27:02 -0500 Subject: [PATCH] Fix for AC-694, we weren't saving the instance if using the cached user --- awx/main/middleware.py | 1 + 1 file changed, 1 insertion(+) diff --git a/awx/main/middleware.py b/awx/main/middleware.py index 9306213ba0..4813f9a67c 100644 --- a/awx/main/middleware.py +++ b/awx/main/middleware.py @@ -33,6 +33,7 @@ class ActivityStreamMiddleware(object): for instance in self.instances: if self.cached_user is not None: instance.user = self.cached_user + instance.save() elif "current_user" in request.COOKIES and "id" in request.COOKIES["current_user"]: userInfo = json.loads(urllib2.unquote(request.COOKIES['current_user']).decode('utf8')) userActual = User.objects.get(id=int(userInfo['id']))