Commit 0dd316aa authored by Ilias Tsitsimpis's avatar Ilias Tsitsimpis
Browse files

astakos: Don't use `user.__dict__'

In Django 1.4 the `request.user' returns a SimpleLazyObject instead
of a LazyUser. The equivalent of `user.__dict__' is now
`user._wrapped.__dict__'. In order to be backward compatible
we are requesting explicitely the attributes we want and not
all of them with __dict__.
parent 39387c2a
......@@ -89,8 +89,8 @@ class CookieHandler():
settings.COOKIE_NAME, value=cookie_value, expires=expire_fmt, path='/',
domain=settings.COOKIE_DOMAIN, secure=settings.COOKIE_SECURE
msg = str(('Cookie [expiring %(auth_token_expires)s]',
'set for %(uuid)s')) % user.__dict__
msg = str(('Cookie [expiring %s]', 'set for %s')) \
% (user.auth_token_expires, user.uuid)
logger._log(settings.LOGGING_LEVEL, msg, [])
def __delete(self):
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment