line length

This commit is contained in:
Andreas Zweili 2022-03-27 14:54:43 +02:00
parent 4e25c53f6e
commit cb3900d80c
1 changed files with 4 additions and 1 deletions

View File

@ -9,7 +9,10 @@ from nets.models import Net, IpStatus
class DeviceManufacturer(Company):
phone_regex = RegexValidator(
regex=r"^\+?1?\d{9,15}$",
message="Phone number must be entered in the format: '+999999999'. Up to 15 digits allowed.",
message="""
Phone number must be entered in the format: '+999999999'.
Up to 15 digits allowed.
""",
)
phone_number = models.CharField(
validators=[phone_regex], max_length=17, blank=True, null=True