Code

Opened 7 years ago

Closed 7 years ago

#4014 closed (wontfix)

TextField in newforms

Reported by: esauro@… Owned by: adrian
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: UI/UX:

Description

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@… 7 years ago.
A modification of django.newforms.fields

Download all attachments as: .zip

Change History (2)

Changed 7 years ago by esauro@…

A modification of django.newforms.fields

comment:1 Changed 7 years ago by adrian

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to wontfix
  • Status changed from new to closed

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

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.