Saturday, July 24, 2010

Re: working with model fields

yes with attrs you can set widget's html attributes. :)

On Jul 24, 12:39 pm, Masklinn <maskl...@masklinn.net> wrote:
> On 24 juil. 2010, at 08:59, Kenneth Gonsalves <law...@au-kbc.org> wrote:> On Saturday, July 24, 2010 10:26:46 am commonzenpython wrote:
> >> hey guys, im making a form, and im having a problem with the
> >> models.TextField() , when used it displays the text field correctly,
> >> but it allows for the text field to be stretched, is there a way to
> >> set a maximun width and height for it ?
>
> > yes - use attrs
>
> Is that going to work if he's talking about webkit's resizing of textareas?

--
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 django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment