Opened 3 years ago

Closed 3 years ago

Last modified 3 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: master
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 Changed 3 years ago by alasdair

Needs documentation: unset
Needs tests: unset
Owner: changed from nobody to alasdair
Patch needs improvement: unset
Status: newassigned

comment:3 Changed 3 years ago by Aymeric Augustin

Triage Stage: UnreviewedAccepted

comment:4 Changed 3 years ago by Tim Graham <timograham@…>

Resolution: fixed
Status: assignedclosed

In 1fa681ee11ac234cdc515338397625f514e85b73:

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

comment:5 Changed 3 years ago by Tim Graham <timograham@…>

In e4174da34ab239f04d9c79fec9822b01d63e453b:

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

Backport of 1fa681ee11 from master

comment:6 Changed 3 years ago by Tim Graham <timograham@…>

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