X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/9a37b12ee33ddaca8ec3d9a9f771e0faf8df9739..e41eda9e5ca27742a6430d3abdd6bebcb4704938:/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