#1045 closed enhancement (wontfix)
Send POST data for unchecked checkboxes
| Reported by: | Owned by: | Adrian Holovaty | |
|---|---|---|---|
| Component: | Core (Other) | Version: | |
| Severity: | minor | Keywords: | |
| Cc: | Triage Stage: | Unreviewed | |
| Has patch: | no | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
By default you can't tell from the POST data whether a user unchecked a checkbox or if it wasn't part of the form -- either way no name/value pair is sent. The attached patch adds a hidden field that gets sent regardless of the state of the checkbox. This makes updating only some fields of a model easier.
Attachments (1)
Change History (2)
by , 20 years ago
| Attachment: | django.checkbox.patch added |
|---|
comment:1 by , 20 years ago
| Resolution: | → wontfix |
|---|---|
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Seems a bit hackish for my tastes...