Merge pull request #168 from Haos616/master

Fixed errors messages for PasswordResetSerializer
This commit is contained in:
mariodev 2016-02-29 21:56:16 +01:00
commit eda3d7b6d2

View File

@ -154,7 +154,7 @@ class PasswordResetSerializer(serializers.Serializer):
# Create PasswordResetForm with the serializer # Create PasswordResetForm with the serializer
self.reset_form = self.password_reset_form_class(data=self.initial_data) self.reset_form = self.password_reset_form_class(data=self.initial_data)
if not self.reset_form.is_valid(): if not self.reset_form.is_valid():
raise serializers.ValidationError(_('Error')) raise serializers.ValidationError(self.reset_form.errors)
return value return value