Please add formfield_callback arg to newforms.models.ModelFormMetaclass.__new__().
|Reported by:||Owned by:||nobody|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
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.