Opened 17 years ago
Last modified 13 years ago
#7244 closed
ModelChoicesField.__init__ and ModelMultipleChoicesField.__init__ must not pass a widget to the parent __init__. — at Initial Version
Reported by: | Sebastian Noack | Owned by: | nobody |
---|---|---|---|
Component: | Forms | Version: | dev |
Severity: | Keywords: | aug22sprint | |
Cc: | Triage Stage: | Accepted | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
There is a bug in the ModelChoicesField and ModelMultipleChoicesField from django.newforms.models, which passed Select or MultipleSelect as default widget to the parent init if not specified. This breaks the ability to set the widget class attribute in derived classes. I wrote a patch, that fixes this.
Change History (1)
by , 17 years ago
Attachment: | 0001-Fixed-widget-handling-in-ModelChoicesField.__init__.patch added |
---|
Note:
See TracTickets
for help on using tickets.