]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/forms/qanda.py
OSQA-678, be sure to call super in the clean method of the title field, otherwise...
[osqa.git] / 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)