diff options
| author | Charlie Denton | 2014-05-02 21:58:49 +0100 | 
|---|---|---|
| committer | Charlie Denton | 2014-05-02 21:58:49 +0100 | 
| commit | ccf3c508bd6750073ea3bbaefff567b92880df73 (patch) | |
| tree | 36cb51fddbebb2719758207c7bbb130ac8f89ad0 | |
| parent | c15dab903d3759578449279cc034d766d362d41f (diff) | |
| download | django-rest-framework-ccf3c508bd6750073ea3bbaefff567b92880df73.tar.bz2 | |
Fix missing message in ValidationError
| -rw-r--r-- | rest_framework/authtoken/serializers.py | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/rest_framework/authtoken/serializers.py b/rest_framework/authtoken/serializers.py index 995f2e64..99e99ae3 100644 --- a/rest_framework/authtoken/serializers.py +++ b/rest_framework/authtoken/serializers.py @@ -18,7 +18,7 @@ class AuthTokenSerializer(serializers.Serializer):              if user:                  if not user.is_active:                      msg = _('User account is disabled.') -                    raise serializers.ValidationError() +                    raise serializers.ValidationError(msg)                  attrs['user'] = user                  return attrs              else: | 
