-
Notifications
You must be signed in to change notification settings - Fork 574
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mobile no is integer field make it regex field or simply character #102
Comments
While testing keep in mind that people will be panicking and entering wrong numbers. Validations should not prevent people from entering numbers. |
@bobinson , This is exactly why we need validators. If they panic and enter 9 numbers or 11 numbers, that data is worthless for us. So we should add a strict validator that accepts just 10 numbers. Maybe starting with 6,7,8,9 |
regex is best at all take a look at regex for india ^[6-9]\d{9}$ |
All browsers now support an input type 'tel' which is used to enter telephone numbers. |
You can use this. This validates all major phone number formats even if it includes 'spaces' or '-' |
Duplicate #84 |
https://github.com/IEEEKeralaSection/rescuekerala/blob/app/restendpoint/models.py
mobile no is integer field.
The text was updated successfully, but these errors were encountered: