Commit ccf3c508 by Charlie Denton

Fix missing message in ValidationError

parent c15dab90
...@@ -18,7 +18,7 @@ class AuthTokenSerializer(serializers.Serializer): ...@@ -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:
......
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