#29438 closed New feature (wontfix)

Add form_callback argument for formset_factory

Reported by: danilovmy Owned by: nobody
Component: Forms Version:
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


it should be same for formset_factory like in modelform_factory

modelform_factory(model, form=ModelForm, fields=None, exclude=None, formfield_callback=None,  widgets=None)

formfield_callback for every field in form_factory,
form_callback for every form in formset_factory.

Change History (1)

comment:1 Changed 12 months ago by Tim Graham

Resolution: wontfix
Status: newclosed

For model forms, formfield_callback is a callable that takes a model field and returns a form field. This doesn't seem relevant for non-model forms. Please explain the use case a bit more.

Note: See TracTickets for help on using tickets.
Back to Top