使用full_clean进行验证
obj = models.UserInfo(name="alex",email="tiantian") obj.full_clean() full_clean进行验证 - 每个字段的正则 - clean钩子
所以可以自定义clean方法 在model.py这个文件里