Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#21539 closed Cleanup/optimization (fixed)

Add example of modelformset_factory form argument to document

Reported by: alasdair Owned by: alasdair
Component: Documentation Version: dev
Severity: Normal Keywords:
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

There are not any examples in the documentation of using the form argument of modelformset_factory.

Often, it is not required, because you can specify arguments like fields, excludes and widgets, for which there are examples.

However, if you want to write any custom validation, then it is necessary to specify form, and I think it would be good to provide an example.

Change History (6)

comment:1 by alasdair, 10 years ago

Owner: changed from nobody to alasdair
Status: newassigned

comment:3 by Aymeric Augustin, 10 years ago

Triage Stage: UnreviewedAccepted

comment:4 by Tim Graham <timograham@…>, 10 years ago

Resolution: fixed
Status: assignedclosed

In 1fa681ee11ac234cdc515338397625f514e85b73:

Fixed #21539 -- Added example of modelformset_factory's form argument

comment:5 by Tim Graham <timograham@…>, 10 years ago

In e4174da34ab239f04d9c79fec9822b01d63e453b:

[1.5.x] Fixed #21539 -- Added example of modelformset_factory's form argument

Backport of 1fa681ee11 from master

comment:6 by Tim Graham <timograham@…>, 10 years ago

In 15ab4936d7d7c351ab8eea5f8c2765632429c9ed:

[1.6.x] Fixed #21539 -- Added example of modelformset_factory's form argument

Backport of 1fa681ee11 from master

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