From 7f3dd827951cbd24d8549bbe6cc50ab3b54a7dfc Mon Sep 17 00:00:00 2001 From: jordan Date: Mon, 1 Aug 2011 10:32:44 +0000 Subject: [PATCH] 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 --- forum/forms/qanda.py | 2 ++ 1 file changed, 2 insertions(+) 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) -- 2.45.1