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
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
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