serializer phonenumber field json code example
Example: serializer phonenumber field json
from phonenumber_field.validators import validate_international_phonenumber
phone_number = models.CharField(
max_length=15, validators=[validate_international_phonenumber], unique=True
)