#18185: inlineformset_factory: formfield_callback does not execute for custom
fields on modelForm
-------------------------------------+-------------------------------------
Reporter: kush420 | Owner: nobody
Type: Bug | Status: new
Component: Documentation | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Design
inlineformset_factory modelform | decision needed
formfield_callback custom fields | Needs documentation: 0
Has patch: 0 | Patch needs improvement: 0
Needs tests: 0 | UI/UX: 0
Easy pickings: 0 |
-------------------------------------+-------------------------------------
Changes (by msopacua):
* needs_better_patch: => 0
* component: Forms => Documentation
* needs_tests: => 0
* version: 1.3 => master
* needs_docs: => 0
* stage: Unreviewed => Design decision needed
Comment:
Formfield_callback is not documented at all and this may be intentional.
If it's not the intentional then it is a doc and perhaps a naming issue.
Formfield_callback is not ''something that calls home once it has created
a form field'' -- it is a function that should '''supply the formfield for
a model field''' instead of the default field.formfield(). As such, it
doesn't make sense to call this function for fields that are not part of a
model and already defined on the form.
--
Ticket URL: <https://code.djangoproject.com/ticket/18185#comment:1>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit https://groups.google.com/groups/opt_out.