|
@@ -2,7 +2,7 @@ from django.core.validators import RegexValidator
|
|
|
|
|
|
|
|
|
|
|
|
|
DNSValidator = RegexValidator(
|
|
DNSValidator = RegexValidator(
|
|
|
- regex='^[0-9A-Za-z.-]+$',
|
|
|
|
|
- message='Only alphanumeric characters, hyphens, and periods are allowed in DNS names',
|
|
|
|
|
|
|
+ regex='^[0-9A-Za-z.-_]+$',
|
|
|
|
|
+ message='Only alphanumeric characters, hyphens, periods, and underscores are allowed in DNS names',
|
|
|
code='invalid'
|
|
code='invalid'
|
|
|
)
|
|
)
|