Merge pull request #1833 from dpanesso/master

Using user.get_username() instead of user.username.
This commit is contained in:
Xavier Ordoquy 2014-09-04 22:59:37 +02:00
commit 29bcce7013

View File

@ -344,7 +344,7 @@ class OAuth2Authentication(BaseAuthentication):
user = token.user user = token.user
if not user.is_active: if not user.is_active:
msg = 'User inactive or deleted: %s' % user.username msg = 'User inactive or deleted: %s' % user.get_username()
raise exceptions.AuthenticationFailed(msg) raise exceptions.AuthenticationFailed(msg)
return (user, token) return (user, token)