stefanfoulis / django-phonenumber-field

A django model and form field for normalised phone numbers using python-phonenumbers
MIT License
1.49k stars 315 forks source link

Error with international numbers in form field #491

Closed javialon26 closed 2 years ago

javialon26 commented 2 years ago

Form field doesn't detect an international number and always triggers the validation error. I have the following configurations:

PHONENUMBER_DEFAULT_FORMAT = "NATIONAL"

I'm using the PhoneNumberInternationalFallbackWidget in Django admin with this phone number +1 (305) 793-1211 or +13057931211, I think the field should detect the international number (E164) like the documentation says: a form widget that uses national numbers unless an international number is entered

francoisfreitag commented 2 years ago

Can you provide a failing test or minimal project demonstrating the issue?