accounts: account app qoshildi, tenant uchun sozlandi
This commit is contained in:
7
core/utils/validators/phone_number.py
Normal file
7
core/utils/validators/phone_number.py
Normal file
@@ -0,0 +1,7 @@
|
||||
# django
|
||||
from django.core.validators import RegexValidator
|
||||
|
||||
uz_phone_validator = RegexValidator(
|
||||
regex=r"^\+998\d{9}$",
|
||||
message="The phone_number is invalid. The format should be like this: +998XXXXXXXXX"
|
||||
)
|
||||
Reference in New Issue
Block a user