📜  django 验证器导入 - 任何代码示例

📅  最后修改于: 2022-03-11 15:00:41.957000             🧑  作者: Mango

代码示例1
from django.core.validators import validate_slug, validate_email
from django.db import models

SlugField = models.CharField(validators=[validate_slug])
EmailField = models.CharField(validators=[validate_email])