Opened 18 years ago
Closed 18 years ago
#5758 closed (fixed)
[newforms-admin] save() fails for non-deletable formsets
| Reported by: | Antti Kaihola | Owned by: | nobody |
|---|---|---|---|
| Component: | Forms | Version: | newforms-admin |
| Severity: | 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
If deletable=True is not specified for a formset, trying to save it results in a KeyError with value 'DELETE' on line 272 of django/newforms/models.py.
Attachments (2)
Change History (4)
by , 18 years ago
| Attachment: | 5758_fix.diff added |
|---|
comment:1 by , 18 years ago
| Has patch: | set |
|---|---|
| Triage Stage: | Unreviewed → Accepted |
by , 18 years ago
| Attachment: | non-deletable-formset-save.diff added |
|---|
wouldn't testing for deletability implement the design more accurately?
comment:2 by , 18 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
I have attached a patch that uses .get as opposed to directly pulling from the cleaned_data dict.