Closes #166: Add dns_name to IPAddress

This commit is contained in:
Jeremy Stretch
2019-04-22 18:10:28 -04:00
parent 39d8c8a8c8
commit 5afec0441b
10 changed files with 62 additions and 11 deletions

View File

@@ -0,0 +1,8 @@
from django.core.validators import RegexValidator
DNSValidator = RegexValidator(
regex='^[a-z]+$',
message='Only alphanumeric characters, hyphens, and periods are allowed in DNS names',
code='invalid'
)