Opened 12 years ago

Closed 12 years ago

#4014 closed (wontfix)

TextField in newforms

Reported by: esauro@… Owned by: Adrian Holovaty
Component: Forms Version: master
Severity: Keywords: TextField, Textarea
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


IMHO TextField (textarea) could be an interesting field type however newforms don't have it directly but handly passing a widget to another field type such as CharField. I have write just a couple of lines that works for me.

Attachments (1)

textfield.diff (1.1 KB) - added by esauro@… 12 years ago.
A modification of django.newforms.fields

Download all attachments as: .zip

Change History (2)

Changed 12 years ago by esauro@…

Attachment: textfield.diff added

A modification of django.newforms.fields

comment:1 Changed 12 years ago by Adrian Holovaty

Resolution: wontfix
Status: newclosed

Field objects are responsible for validation, not display. Use TextField(widget=Textarea) to accomplish what you want to do.

Note: See TracTickets for help on using tickets.
Back to Top