Opened 11 years ago

Closed 11 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:


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

All tests passed.

Attachments (1)

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

Download all attachments as: .zip

Change History (4)

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

Attachment: models_widgets.patch added

comment:1 Changed 11 years ago by Chris Beaven

Triage Stage: UnreviewedDesign decision needed

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

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

Patch needs improvement: set

On rev:4734 patch no longer applies.

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

Resolution: invalid
Status: newclosed

fixed long time ago

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