📜  序列化器 phonenumber 字段 json - Python 代码示例

📅  最后修改于: 2022-03-11 14:47:21.732000             🧑  作者: Mango

代码示例1
from phonenumber_field.validators import validate_international_phonenumber
phone_number = models.CharField(
        max_length=15, validators=[validate_international_phonenumber], unique=True
    )