X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/2444d6ffd7995be782615589fb1d5aef2c8277ce..f73c15a3bd47e9f7fe3a29645f968528fb6415e4:/forum/forms/qanda.py?ds=sidebyside diff --git a/forum/forms/qanda.py b/forum/forms/qanda.py index 9890640..e107ad2 100644 --- a/forum/forms/qanda.py +++ b/forum/forms/qanda.py @@ -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 = ''