Fix missing message in ValidationError

This commit is contained in:
Charlie Denton 2014-05-02 21:58:49 +01:00
parent c15dab903d
commit ccf3c508bd

View File

@ -18,7 +18,7 @@ class AuthTokenSerializer(serializers.Serializer):
if user: if user:
if not user.is_active: if not user.is_active:
msg = _('User account is disabled.') msg = _('User account is disabled.')
raise serializers.ValidationError() raise serializers.ValidationError(msg)
attrs['user'] = user attrs['user'] = user
return attrs return attrs
else: else: