Merge pull request #81 from itbabu/master

Fix TabError: inconsistent use of tabs and spaces in indentation
This commit is contained in:
Maciej Jaworski 2015-04-28 08:19:39 +02:00
commit c1f2bb48dd

View File

@ -110,7 +110,7 @@ class PasswordResetConfirmSerializer(serializers.Serializer):
self.set_password_form = self.set_password_form_class(user=self.user,
data=attrs)
if not self.set_password_form.is_valid():
raise serializers.ValidationError(self.set_password_form.errors)
raise serializers.ValidationError(self.set_password_form.errors)
if not default_token_generator.check_token(self.user, attrs['token']):
raise ValidationError({'token': ['Invalid value']})