Opened 12 years ago

Closed 12 years ago

#9058 closed (duplicate)

Incorrect Documentation Note for modelformset_factory

Reported by: Andriy Drozdyuk Owned by: nobody
Component: Documentation Version: 1.0
Severity: Keywords:
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


On the page:

the Note says:

One thing to note is that modelformset_factory uses formset_factory and by default uses can_delete=True.

This is actually not the case! In the code the default value for the can_delete is False!
See line 276:

Change History (2)

comment:1 Changed 12 years ago by Brian Rosner

Triage Stage: UnreviewedAccepted

Yes. This is a documentation mishap. can_delete=True should have been marked on inlineformset_factory and not modelformset_factory.

comment:2 Changed 12 years ago by Brian Rosner

Resolution: duplicate
Status: newclosed

Looks like this is a duplicate of #9027.

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