Opened 8 years ago
Closed 8 years ago
#27291 closed Bug (duplicate)
Missing attribute: CheckboxSelectMultiple.dont_use_model_field_default_for_empty_data = True
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.
PR here:
https://github.com/django/django/pull/7312