]> git.openstreetmap.org Git - osqa.git/commitdiff
OSQA-678, be sure to call super in the clean method of the title field, otherwise...
authorjordan <jordan@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Mon, 1 Aug 2011 10:32:44 +0000 (10:32 +0000)
committerjordan <jordan@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Mon, 1 Aug 2011 10:32:44 +0000 (10:32 +0000)
git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@1143 0cfe37f9-358a-4d5e-be75-b63607b5c754

forum/forms/qanda.py

index 3e95355a79e46ad9173b47c2a451f236e8d16e68..cd9fc7831da33ce1274df30324442b52b5b7839f 100644 (file)
@@ -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)