From: qw3rty Date: Fri, 14 May 2010 15:27:06 +0000 (+0000) Subject: forgot to remove a test variable. X-Git-Tag: live~856 X-Git-Url: https://git.openstreetmap.org./osqa.git/commitdiff_plain/ddce82ce7b9c030a00fa700d11094ac4b24b6176?hp=731bd8d097522b5380d52a1ff452290e8ffac78c forgot to remove a test variable. git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@274 0cfe37f9-358a-4d5e-be75-b63607b5c754 --- diff --git a/forum/forms.py b/forum/forms.py index 143be75..b6bfc08 100644 --- a/forum/forms.py +++ b/forum/forms.py @@ -68,7 +68,6 @@ class TagNamesField(forms.CharField): list_temp = [] tagname_re = re.compile(r'[a-z0-9]+') for tag in list: - test = len(tag) if len(tag) > settings.FORM_MAX_LENGTH_OF_TAG or len(tag) < settings.FORM_MIN_LENGTH_OF_TAG: raise forms.ValidationError(_('please use between %(min)s and %(max)s characters in you tags') % { 'min': apnumber(settings.FORM_MIN_LENGTH_OF_TAG), 'max': apnumber(settings.FORM_MAX_LENGTH_OF_TAG)}) if not tagname_re.match(tag):