Created
December 9, 2015 18:48
-
-
Save kylefox/fdb7a89f3b033cea59ca to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def validate(self, data): | |
if data['new_password1'] != data['new_password2']: | |
raise serializers.ValidationError({ | |
'new_password2': 'Password confirmation does not match.' | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment