mirror of
https://github.com/netbox-community/netbox.git
synced 2025-12-20 12:22:23 -06:00
Closes #166: Add dns_name to IPAddress
This commit is contained in:
8
netbox/ipam/validators.py
Normal file
8
netbox/ipam/validators.py
Normal 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'
|
||||
)
|
||||
Reference in New Issue
Block a user