aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework/authtoken
diff options
context:
space:
mode:
authorTom Christie2015-01-09 11:57:02 +0000
committerTom Christie2015-01-09 11:57:02 +0000
commit11efde890556a46f32d486250b1a0b03ce83c17d (patch)
treeb92ffe89c0268124382f381e7c4ee27d6945a50d /rest_framework/authtoken
parentf0ad0a88c49f1fef473ef1fbf965bcaa974ee062 (diff)
parent7f8d314101c4e6e059b00ac12658f0e1055da8f7 (diff)
downloaddjango-rest-framework-11efde890556a46f32d486250b1a0b03ce83c17d.tar.bz2
Merge pull request #2373 from jakul/document-translations-3.1
Document how to translate DRF error messages (version 3.1)
Diffstat (limited to 'rest_framework/authtoken')
-rw-r--r--rest_framework/authtoken/serializers.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/rest_framework/authtoken/serializers.py b/rest_framework/authtoken/serializers.py
index f31dded1..37ade255 100644
--- a/rest_framework/authtoken/serializers.py
+++ b/rest_framework/authtoken/serializers.py
@@ -23,7 +23,7 @@ class AuthTokenSerializer(serializers.Serializer):
msg = _('Unable to log in with provided credentials.')
raise exceptions.ValidationError(msg)
else:
- msg = _('Must include "username" and "password"')
+ msg = _('Must include "username" and "password".')
raise exceptions.ValidationError(msg)
attrs['user'] = user