]> git.openstreetmap.org Git - osqa.git/commitdiff
Closing OSQA 287. Applied patch from Oscar. Thanks
authorhernani <hernani@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Mon, 24 May 2010 16:58:34 +0000 (16:58 +0000)
committerhernani <hernani@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Mon, 24 May 2010 16:58:34 +0000 (16:58 +0000)
git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@319 0cfe37f9-358a-4d5e-be75-b63607b5c754

forum/forms.py

index 8582f3a4b6a593d6f0acb20c2098fe078839aaef..49bd5ffa1c7140b106f237260ce14862b335a2cc 100644 (file)
@@ -23,7 +23,7 @@ class TitleField(forms.CharField):
 
     def clean(self, value):
         if len(value) < settings.FORM_MIN_QUESTION_TITLE:
-            raise forms.ValidationError(_('title must be must be at least %s characters' % settings.FORM_MIN_QUESTION_TITLE))
+            raise forms.ValidationError(_('title must be must be at least %s characters') % settings.FORM_MIN_QUESTION_TITLE)
 
         return value
 
@@ -44,7 +44,7 @@ class QuestionEditorField(EditorField):
 
     def clean(self, value):
         if self.required and (len(value) < settings.FORM_MIN_QUESTION_BODY):
-            raise forms.ValidationError(_('question content must be must be at least %s characters' % settings.FORM_MIN_QUESTION_BODY))
+            raise forms.ValidationError(_('question content must be at least %s characters') % settings.FORM_MIN_QUESTION_BODY)
 
         return value
 
@@ -55,7 +55,7 @@ class AnswerEditorField(EditorField):
 
     def clean(self, value):
         if len(value) < settings.FORM_MIN_QUESTION_BODY:
-            raise forms.ValidationError(_('answer content must be must be at least %s characters' % settings.FORM_MIN_QUESTION_BODY))
+            raise forms.ValidationError(_('answer content must be at least %s characters') % settings.FORM_MIN_QUESTION_BODY)
 
         return value