Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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
    ) 

Source by github.com #
 
PREVIOUS NEXT
Tagged: #serializer #phonenumber #field #json
ADD COMMENT
Topic
Name
6+8 =