Closed marcoller closed 5 years ago
Hi @marcoller I think this might be an overly simplistic approach to validating phone numbers (e.g. right now it would accept number extensions like +16503334444x1234
). Phone validation is actually a pretty complex problem that has its own set of libraries, for instance https://github.com/daviddrysdale/python-phonenumbers.
Depending on one's use case it might be fine to choose this simpler approach or it might not. I'm a bit weary to add a PhoneField
that might fail to support some valid phone numbers.
Let's close this issue as it is quite old and didn't get much attention. For future ref, note that django does not have a builtin phone field, there is another package (django-phone-field) that offers support
Hello,
we've seen that a phone field does not exist on the mongoengine models. We have added it and that is the code resulting from the git diff on the fields.py file: