allow uppercase on nameservers, convert to lowercase

This commit is contained in:
David Kennedy 2023-11-02 12:42:54 -04:00
parent 0e8b24da10
commit a194a34123
No known key found for this signature in database
GPG key ID: 6528A5386E66B96B

View file

@ -46,6 +46,9 @@ class DomainNameserverForm(forms.Form):
server = cleaned_data.get("server", "")
# remove ANY spaces in the server field
server = server.replace(" ", "")
# lowercase the server
server = server.lower()
cleaned_data["server"] = server
ip = cleaned_data.get("ip", None)
# remove ANY spaces in the ip field
ip = ip.replace(" ", "")