You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
class Feedback(CreateUpdateModel):
...
mobile = models.CharField(_('Mobile Number'), max_length=15, blank=True)
Since, mobile field is CharField, it also accepts characters which it should not!
To validate, you can employ some combination of formatting and then attempting to contact the number immediately to verify. You should use RegexValidator.
The text was updated successfully, but these errors were encountered:
In models.py,
Since, mobile field is CharField, it also accepts characters which it should not!
To validate, you can employ some combination of formatting and then attempting to contact the number immediately to verify. You should use RegexValidator.
The text was updated successfully, but these errors were encountered: