From: jordan Date: Mon, 1 Aug 2011 10:32:44 +0000 (+0000) Subject: OSQA-678, be sure to call super in the clean method of the title field, otherwise... X-Git-Tag: live~170 X-Git-Url: https://git.openstreetmap.org/osqa.git/commitdiff_plain/7f3dd827951cbd24d8549bbe6cc50ab3b54a7dfc OSQA-678, be sure to call super in the clean method of the title field, otherwise validation is not fully implemented git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@1143 0cfe37f9-358a-4d5e-be75-b63607b5c754 --- diff --git a/forum/forms/qanda.py b/forum/forms/qanda.py index 3e95355..cd9fc78 100644 --- a/forum/forms/qanda.py +++ b/forum/forms/qanda.py @@ -26,6 +26,8 @@ class TitleField(forms.CharField): self.initial = '' def clean(self, value): + super(TitleField, self).clean(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)