Code

Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#1045 closed enhancement (wontfix)

Send POST data for unchecked checkboxes

Reported by: andreas@… Owned by: adrian
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: UI/UX:

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)

django.checkbox.patch (1.1 KB) - added by andreas@… 8 years ago.

Download all attachments as: .zip

Change History (2)

Changed 8 years ago by andreas@…

comment:1 Changed 8 years ago by adrian

  • Resolution set to wontfix
  • Status changed from new to closed

Seems a bit hackish for my tastes...

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.