diff options
| author | Xavier Ordoquy | 2014-09-04 22:59:37 +0200 |
|---|---|---|
| committer | Xavier Ordoquy | 2014-09-04 22:59:37 +0200 |
| commit | 29bcce70135d9fccd8d27a5e425f756363e28700 (patch) | |
| tree | cf9f67f3e2bc5c891578b2e33c71268714b2fa25 /rest_framework/authentication.py | |
| parent | 840fe7b05c1f7312a254d6ce563d986adb4d1bc4 (diff) | |
| parent | 1ab782a430afe479535ee5bded81806dee189b69 (diff) | |
| download | django-rest-framework-29bcce70135d9fccd8d27a5e425f756363e28700.tar.bz2 | |
Merge pull request #1833 from dpanesso/master
Using user.get_username() instead of user.username.
Diffstat (limited to 'rest_framework/authentication.py')
| -rw-r--r-- | rest_framework/authentication.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rest_framework/authentication.py b/rest_framework/authentication.py index 5721a869..f3fec05e 100644 --- a/rest_framework/authentication.py +++ b/rest_framework/authentication.py @@ -344,7 +344,7 @@ class OAuth2Authentication(BaseAuthentication): user = token.user 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) return (user, token) |
