Trying to do validation of input for the phone number using the RegexValidator.
in the model the user has prescribed the following:
phone_regex = RegexValidator(
message="Phone number must be entered in the format: '+999999999'. Up to 15 digits allowed."
phone = models.CharField(validators=[phone_regex], max_length=17, blank=True)
when entering ugly numbers in input, the data is stored, fine, but
Expect that when you enter in the input letters will leave that in the message.
What can be connected, can this variable where it is most necessary to withdraw?