]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/forms/qanda.py
OSQA-143, fixing text overflow issue under IE8, added max-width to the paragraphs...
[osqa.git] / forum / forms / qanda.py
index 98906400a5d2da211136303f8944899060513203..e107ad2f53691a118c24dc7c6447cfcd0080eb66 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 = ''