Opened 7 years ago

Closed 6 years ago

#29438 closed New feature (wontfix)

Add form_callback argument for formset_factory

Reported by: Maxim Danilov 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

Description

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 by Tim Graham, 6 years ago

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