Opened 18 years ago

Closed 17 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: dev
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: no UI/UX: no

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@…> 18 years ago.

Download all attachments as: .zip

Change History (4)

by Honza Král <Honza.Kral@…>, 18 years ago

Attachment: models_widgets.patch added

comment:1 by Chris Beaven, 18 years ago

Triage Stage: UnreviewedDesign decision needed

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

comment:2 by Marc Fargas <telenieko@…>, 18 years ago

Patch needs improvement: set

On rev:4734 patch no longer applies.

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

Resolution: invalid
Status: newclosed

fixed long time ago

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