diff options
| author | Craig Blaszczyk | 2015-01-07 12:46:23 +0000 | 
|---|---|---|
| committer | Craig Blaszczyk | 2015-01-07 12:46:23 +0000 | 
| commit | 91e316f7810157474d6246cd0024bd7f7cc31ff7 (patch) | |
| tree | 1279d952e1bbc7cfb281cea90b7d215e15534ea1 /rest_framework/authtoken | |
| parent | 9a4267049ba37883e3e0c21b5d453b9551343b8d (diff) | |
| download | django-rest-framework-91e316f7810157474d6246cd0024bd7f7cc31ff7.tar.bz2 | |
prefer single quotes in source and double quotes in user visible strings; add some missing full stops to user visible strings
Diffstat (limited to 'rest_framework/authtoken')
| -rw-r--r-- | rest_framework/authtoken/serializers.py | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/rest_framework/authtoken/serializers.py b/rest_framework/authtoken/serializers.py index 78fe6a11..37ade255 100644 --- a/rest_framework/authtoken/serializers.py +++ b/rest_framework/authtoken/serializers.py @@ -17,13 +17,13 @@ class AuthTokenSerializer(serializers.Serializer):              if user:                  if not user.is_active: -                    msg = _("User account is disabled.") +                    msg = _('User account is disabled.')                      raise exceptions.ValidationError(msg)              else: -                msg = _("Unable to log in with provided credentials.") +                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 | 
