check_phone_bug
This commit is contained in:
parent
d24a265b1d
commit
abe2fa2f76
|
@ -171,7 +171,7 @@ def check_id_number(idcard):
|
||||||
|
|
||||||
|
|
||||||
def check_phone_e(phone):
|
def check_phone_e(phone):
|
||||||
re_phone = r'/^1\d{10}$/'
|
re_phone = r'^1\d{10}$'
|
||||||
if not re.match(re_phone, phone):
|
if not re.match(re_phone, phone):
|
||||||
raise ValidationError('手机号格式错误')
|
raise ValidationError('手机号格式错误')
|
||||||
return phone
|
return phone
|
||||||
|
|
Loading…
Reference in New Issue