Hello, I'm trying the code bellow and I'm getting unexpected results with newforms widgets. I'm doing something wrong or is this for a ticket?
f2 and it's field should have max_length=10 not max_length=30 or maybe not? ### from django import newforms as forms from django.newforms.widgets import * attrs1={'class':'aclass'} class form1(forms.Form): field1 = forms.CharField(widget=TextInput(attrs=attrs1),max_length=30) class form2(forms.Form): field2 = forms.EmailField(widget=TextInput(attrs=attrs1),max_length=10) f2 = form2() f2.as_p() u'<p><label for="id_field2">Field2:</label> <input id="id_field2" type="text" class="aclass" name="field2"maxlength="30" /></p>' ### -- Glisha The perfect OS, MS-DOS! No patches, no root exploits for 21 years. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---