formfield_callback attribute on ModelForm not being passed to modelform_factory
|Reported by:||django@…||Owned by:||nobody|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
Solitary ModelForm instances are run though ModelForm.formfield_callback() when they are instantiated. It would be nice if ModelForm instances generated from modelform_factory also did this without having to specify formfield_callback again when calling modelform_factory.
modelform_factory( model=AModel, form=AModelForm, formfield_callback=AModelForm.formfield_callback if hasattr(AModelForm, 'formfield_callback') else None )
I am not entirely sure of the terminology. I'm happy to explain further if need be.
Change History (4)
comment:1 Changed 2 years ago by lrekucki
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset
- Triage Stage changed from Unreviewed to Accepted