On Thu, 2006-10-26 at 14:38 +0200, Benedict Verheyen wrote:
> Benedict Verheyen schreef:
> > Hi,
> > 
> > a have a charfield of 255 chars in a model but on the form, it
> > consists of a smallish
> > inputfield instead of a textarea.
> > How can i increase the size of the form element?
> > 
> > Thanks
> > Benedict
> 
> The solution with changing the CharField length property works.
> But then it still doesn't make a textarea but rather a very very long
> input field :)
> 
> As xav suggested, changing the model to TextField instead solves it.
> But the resulting textarea is really big. Ideally, we should be able to
> specify in the model how the textarea should look.
> Maybe specifying the width & height or the rows/columns.

We've had this discussion before, search the archives for the discussion
(end of July was certainly one time it popped up).

In general, we want like to avoid putting presentation related
information into models, since they should be presentation independent
as much as possible. The fact that we haven't avoided that entirely so
far isn't an excuse to slide further down that slope.

Regards,
Malcolm


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to