Fixed errors messages for PasswordResetSerializer

Fixed errors messages for PasswordResetSerializer
This commit is contained in:
Haos616 2016-02-10 18:45:32 +02:00
parent 7c8a34f700
commit dae38d4e10

View File

@ -149,7 +149,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