Opened 8 years ago

Closed 8 years ago

#27291 closed Bug (duplicate)

Missing attribute: CheckboxSelectMultiple.dont_use_model_field_default_for_empty_data = True

Reported by: stephenmcd Owned by: nobody
Component: Forms Version: 1.10
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX: no

Description

This commit introduced the dont_use_model_field_default_for_empty_data attribute for controlling whether a widget should use default values when its not present in the HTTP request, and applied to the CheckboxInput since checkboxes don't send an empty value when unchecked:

https://github.com/django/django/commit/325dd0befea3012c42eefa061f509fbdf1b6a8aa

The issue is that it was overlooked on the CheckboxSelectMultiple widget, which now uses a default value when all checkboxes are unchecked.

Change History (2)

comment:1 by stephenmcd, 8 years ago

Easy pickings: set
Has patch: set

comment:2 by Tim Graham, 8 years ago

Resolution: duplicate
Status: newclosed

I'll reopen #27186.

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