This commit is contained in:
Rachid Mrad 2024-04-12 21:52:16 -04:00
parent 2e86c167b9
commit ffa7b59eb5
No known key found for this signature in database

View file

@ -99,7 +99,7 @@ class DomainNameserverForm(forms.Form):
ip_list = self.extract_ip_list(ip) ip_list = self.extract_ip_list(ip)
# Capture the server_value # Capture the server_value
server_value = self.cleaned_data["server"] server_value = self.cleaned_data.get("server")
# Validate if the form has a server or an ip # Validate if the form has a server or an ip
if (ip and ip_list) or server: if (ip and ip_list) or server: