mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Fixes #3722: Allow the underscore character in IPAddress DNS names
This commit is contained in:
@ -6,6 +6,7 @@
|
|||||||
* [#3457](https://github.com/netbox-community/netbox/issues/3457) - Display cable colors on device view
|
* [#3457](https://github.com/netbox-community/netbox/issues/3457) - Display cable colors on device view
|
||||||
* [#3329](https://github.com/netbox-community/netbox/issues/3329) - Remove obsolete P3P policy header
|
* [#3329](https://github.com/netbox-community/netbox/issues/3329) - Remove obsolete P3P policy header
|
||||||
* [#3663](https://github.com/netbox-community/netbox/issues/3663) - Add query filters for `created` and `last_updated` fields
|
* [#3663](https://github.com/netbox-community/netbox/issues/3663) - Add query filters for `created` and `last_updated` fields
|
||||||
|
* [#3722](https://github.com/netbox-community/netbox/issues/3722) - Allow the underscore character in IPAddress DNS names
|
||||||
|
|
||||||
## Bug Fixes
|
## Bug Fixes
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@ from django.core.validators import RegexValidator
|
|||||||
|
|
||||||
|
|
||||||
DNSValidator = RegexValidator(
|
DNSValidator = RegexValidator(
|
||||||
regex='^[0-9A-Za-z.-]+$',
|
regex='^[0-9A-Za-z.-_]+$',
|
||||||
message='Only alphanumeric characters, hyphens, and periods are allowed in DNS names',
|
message='Only alphanumeric characters, hyphens, periods, and underscores are allowed in DNS names',
|
||||||
code='invalid'
|
code='invalid'
|
||||||
)
|
)
|
||||||
|
Reference in New Issue
Block a user