Opened 17 years ago
Closed 17 years ago
#6197 closed (fixed)
Please add formfield_callback arg to newforms.models.ModelFormMetaclass.__new__().
Reported by: | Owned by: | nobody | |
---|---|---|---|
Component: | Forms | Version: | dev |
Severity: | Keywords: | ||
Cc: | Triage Stage: | Unreviewed | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
I've run into a use case where I want to subclass the metaclass in order to provide a different way to map models to form fields. Right now I have to copy all of ModelFormMetaclass.new() in order to override the formfield_callback argument in the call to fields_for_model() in new().
I'll attach a patch too.
Attachments (2)
Change History (3)
by , 17 years ago
Attachment: | models.diff added |
---|
comment:1 by , 17 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
patch for newforms/models.py