Activity module - fixing request.user error
authorRadomir <radomir.klacza@lip6.fr>
Fri, 28 Aug 2015 10:19:05 +0000 (12:19 +0200)
committerRadomir <radomir.klacza@lip6.fr>
Fri, 28 Aug 2015 10:19:05 +0000 (12:19 +0200)
activity/__init__.py

index 9c56aaa..be5779d 100644 (file)
@@ -56,7 +56,7 @@ def logWrite(request, action, message, objects = None):
         "client_ip" : ip,
         "host"      : request.get_host(),
         "referrer"  : request.META.get('HTTP_REFERER'),
-        "user"      : request.user,
+        "user"      : request.user.username,
         "action"    : action,
         "message"   : message,
         "apikey"    : apikey,