Changing domain name regexp

Change-Id: If6c7a24891690b8906e4129f12b581fded91599a
This commit is contained in:
Ekaterina Fedorova 2013-06-13 11:30:27 +04:00
parent 3bfc61376b
commit 4eab955bb6
1 changed files with 1 additions and 1 deletions

View File

@ -76,7 +76,7 @@ class CommonPropertiesExtension(object):
class WizardFormADConfiguration(forms.Form, CommonPropertiesExtension):
domain_name_re = re.compile(
r'^[a-zA-Z0-9][a-zA-Z0-9-]{1,61}[a-zA-Z0-9](\.[a-zA-Z]{2,})?$')
r'^[a-zA-Z0-9][a-zA-Z0-9.-]+[a-zA-Z0-9]$')
validate_domain_name = RegexValidator(domain_name_re,
_(u'Enter a valid domain name: \
just letters, numbers, dashes and \