+class AnswerEditorField(EditorField):
+ def __init__(self, *args, **kwargs):
+ super(AnswerEditorField, self).__init__(*args, **kwargs)
+ self.required = True
+
+ def clean(self, value):
+ if len(value) < settings.FORM_MIN_QUESTION_BODY:
+ raise forms.ValidationError(_('answer content must be at least %s characters') % settings.FORM_MIN_QUESTION_BODY)
+
+ return value
+
+