Code

Opened 7 years ago

Closed 7 years ago

#3292 closed enhancement (invalid)

[patch] newforms: allow models to override default widget

Reported by: Honza Král <Honza.Kral@…> Owned by: nobody
Component: Forms Version: master
Severity: normal Keywords: newforms form_for_model
Cc: Honza.Kral@… Triage Stage: Design decision needed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: yes
Easy pickings: UI/UX:

Description

I implemented another keyword argument to django.db.models.fields.Field overriding the default widget for its formfield.
As discussed on django-developers:

http://groups.google.com/group/django-developers/browse_thread/thread/8320e1afcf147d3f/31e3ce114cc3d942

All tests passed.

Attachments (1)

models_widgets.patch (8.5 KB) - added by Honza Král <Honza.Kral@…> 7 years ago.

Download all attachments as: .zip

Change History (4)

Changed 7 years ago by Honza Král <Honza.Kral@…>

comment:1 Changed 7 years ago by SmileyChris

  • Triage Stage changed from Unreviewed to Design decision needed

With Adrian's current work on the newforms branch, this could change entirely.

comment:2 Changed 7 years ago by Marc Fargas <telenieko@…>

  • Patch needs improvement set

On rev:4734 patch no longer applies.

comment:3 Changed 7 years ago by Honza Král <Honza.Kral@…>

  • Resolution set to invalid
  • Status changed from new to closed

fixed long time ago

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.