Re: maxlength is always 10 with text widget

2007-03-30 Thread tyman26
> txtfld_attrs_dict = { 'class': 'default_txt_field'} > contact_first = > forms.CharField(widget=forms.TextInput(attrs=txtfld_attrs_dict),max_length=25,label=u'Contact > First') I figured out the problem, you have to set the dictionary representation within the widget parameter if you use a

maxlength is always 10 with text widget

2007-03-29 Thread tyman26
I have a charField in a newForm with a max_length=25, but when I load the form it gets set to 10 everytime. If I get rid of the widget, then the max_length is set correctly at 25. Does anyone know why the widget would automatically set the maxlength to a default value? Here is my code: txtfld