From e4f117e7536ae14ca750e290e2ed1e7ac6fa1663 Mon Sep 17 00:00:00 2001 From: jiangweidong Date: Mon, 10 Apr 2023 17:32:31 +0800 Subject: [PATCH] fix --- apps/common/validators.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/common/validators.py b/apps/common/validators.py index 9c01a606f..5bb3e4bdb 100644 --- a/apps/common/validators.py +++ b/apps/common/validators.py @@ -49,7 +49,7 @@ class PhoneValidator: def __call__(self, value): try: - phone = phonenumbers.parse(value) + phone = phonenumbers.parse(value, 'CN') valid = phonenumbers.is_valid_number(phone) except NumberParseException: valid = False