Skip to content

Commit

Permalink
Fix example use with Django form
Browse files Browse the repository at this point in the history
Add error anyways
  • Loading branch information
cho-leukeleu authored Nov 8, 2017
1 parent 7cdcb87 commit 3c8d6b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ Django forms will return only required address fields in ``form.cleaned_data`` d
msg = 'Invalid value, use fomat like %s' % examples
else:
msg = ERROR_MESSAGES[error_code]
self.add_error(field, msg)
self.add_error(field, msg)
return valid_address or clean_data
Expand Down

0 comments on commit 3c8d6b9

Please sign in to comment.