Commit ccf3c508 by Charlie Denton

Fix missing message in ValidationError

parent c15dab90
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment