Give hint in error message.

This commit is contained in:
Julien Palard 2023-01-26 23:01:38 +01:00
parent db826842ed
commit 032ae46232
Signed by: mdk
GPG Key ID: 0EFC1AC1006886F8
1 changed files with 1 additions and 1 deletions

View File

@ -492,7 +492,7 @@ def validate_phone_number(phone_number: str):
raise ValidationError(str(err))
else:
if not phonenumbers.is_valid_number(number):
raise ValidationError(_("Invalid phone number"))
raise ValidationError(_("Invalid phone number, try using the country code (like +33 for France)"))
class Volunteer(PonyConfModel):