X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/103b5c05008c7571ac33b55d978ca8a297e9f927..b97cf4924e1f43e7cf92bfc807a8e3dec1a2eec1:/forum/forms.py diff --git a/forum/forms.py b/forum/forms.py index 77430ef..35c6083 100644 --- a/forum/forms.py +++ b/forum/forms.py @@ -38,7 +38,7 @@ class EditorField(forms.CharField): self.initial = '' def clean(self, value): - if len(value) < settings.FORM_MIN_QUESTION_BODY: + if len(value) < settings.FORM_MIN_QUESTION_BODY and not settings.FORM_EMPTEY_QUESTION_BODY: raise forms.ValidationError(_('question content must be must be at least %s characters' % settings.FORM_MIN_QUESTION_BODY)) return value