]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/forms/qanda.py
Several improvements in full text search operations.
[osqa.git] / forum / forms / qanda.py
index 98906400a5d2da211136303f8944899060513203..afe166ce6b4302e85e08ba11bbac164ce145857b 100644 (file)
@@ -17,8 +17,8 @@ class TitleField(forms.CharField):
     def __init__(self, *args, **kwargs):
         super(TitleField, self).__init__(*args, **kwargs)
         self.required = True
-        self.widget = forms.TextInput(attrs={'size' : 70, 'autocomplete' : 'off'})
         self.max_length = 255
+        self.widget = forms.TextInput(attrs={'size' : 70, 'autocomplete' : 'off', 'maxlength' : self.max_length})
         self.label  = _('title')
         self.help_text = _('please enter a descriptive title for your question')
         self.initial = ''
@@ -296,8 +296,7 @@ class EditUserForm(forms.Form):
 
         if user.date_of_birth is not None:
             self.fields['birthday'].initial = user.date_of_birth
-        else:
-            self.fields['birthday'].initial = '1990-01-01'
+
         self.fields['about'].initial = user.about
         self.user = user