Opened 17 years ago
Closed 17 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 |
Description
On the page:
http://docs.djangoproject.com/en/dev/topics/forms/modelforms/#id1
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:
http://code.djangoproject.com/browser/django/trunk/django/forms/formsets.py#L276
Change History (2)
comment:1 by , 17 years ago
| Triage Stage: | Unreviewed → Accepted |
|---|
comment:2 by , 17 years ago
| Resolution: | → duplicate |
|---|---|
| Status: | new → closed |
Looks like this is a duplicate of #9027.
Note:
See TracTickets
for help on using tickets.
Yes. This is a documentation mishap.
can_delete=Trueshould have been marked oninlineformset_factoryand notmodelformset_factory.