Commit b4e78347 authored by Leonidas Poulopoulos's avatar Leonidas Poulopoulos

Changed institution oper_name validation to FQDN

parent 215ef94b
...@@ -41,7 +41,7 @@ class InstDetailsForm(forms.ModelForm): ...@@ -41,7 +41,7 @@ class InstDetailsForm(forms.ModelForm):
institution = self.cleaned_data['institution'] institution = self.cleaned_data['institution']
if institution.ertype in [2,3]: if institution.ertype in [2,3]:
if oper_name: if oper_name:
match = re.match(DN_RE, oper_name) match = re.match(FQDN_RE, oper_name)
if not match: if not match:
raise forms.ValidationError('Invalid domain name format.') raise forms.ValidationError('Invalid domain name format.')
return self.cleaned_data["oper_name"] return self.cleaned_data["oper_name"]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment