Skip to content

Commit

Permalink
Merge pull request #6 from vbabiy/better_validate
Browse files Browse the repository at this point in the history
Use libphonenumber for validation
  • Loading branch information
stefanfoulis committed Dec 4, 2012
2 parents 0ac94e9 + acd04e6 commit f4e1897
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion phonenumber_field/validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@
def validate_international_phonenumber(value):
phone_number = to_python(value)
if phone_number and not phone_number.is_valid():
raise ValidationError(_(u'Enter a valid phone number (e.g. +411234567).'))
raise ValidationError(_(u'The phone number entered is not valid.'))

0 comments on commit f4e1897

Please sign in to comment.