Fixes #4074: DNS regex validator mathes 0 or more

This commit is contained in:
kobayashi 2020-02-06 02:44:48 -05:00
parent 2296cdc222
commit 1dac3be21b
2 changed files with 2 additions and 1 deletions

View File

@ -16,6 +16,7 @@
* [#3313](https://github.com/netbox-community/netbox/issues/3313) - Toggle config context display between JSON and YAML
* [#3886](https://github.com/netbox-community/netbox/issues/3886) - Enable assigning config contexts by cluster and cluster group
* [#4051](https://github.com/netbox-community/netbox/issues/4051) - Disable the `makemigrations` management command
* [#4074](https://github.com/netbox-community/netbox/issues/4074) - DNS regex validation matches 0 or more
## Bug Fixes

View File

@ -24,7 +24,7 @@ class MinPrefixLengthValidator(BaseValidator):
DNSValidator = RegexValidator(
regex='^[0-9A-Za-z._-]+$',
regex='^[0-9A-Za-z._-]*$',
message='Only alphanumeric characters, hyphens, periods, and underscores are allowed in DNS names',
code='invalid'
)