Personally, I just use CSS to get my form controls looking how I want them.
-+ enlight +-
chasfs wrote:
> I started using newforms and found that the form for a textarea is
> quite small by default. Currently I'm using:
> Form = forms.form_for_instance(my_object)
> Form.fields['text1'].widget.attrs.update({'rows':'20', 'cols':'80'})
> Form.fields['text2'].widget.attrs.update({'rows':'20', 'cols':'80'})
> to specify the rows and columns for the textareas for text1 and text2.
> Is this the best way to do this?
> Thanks!
> -chasfs
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---