mirror of
https://github.com/django/django.git
synced 2025-10-26 07:06:08 +00:00
[1.10.x] Refs #27186 -- Fixed model form default fallback for CheckboxSelectMultiple.
Backport of 87c5e7efeb from master
This commit is contained in:
@@ -281,10 +281,11 @@ foundation for custom widgets.
|
||||
The method's result affects whether or not a field in a model form
|
||||
:ref:`falls back to its default <topics-modelform-save>`.
|
||||
|
||||
A special case is :class:`~django.forms.CheckboxInput`, which always
|
||||
returns ``False`` because an unchecked checkbox doesn't appear in the
|
||||
data of an HTML form submission, so it's unknown whether or not the
|
||||
user actually submitted a value.
|
||||
Special cases are :class:`~django.forms.CheckboxInput` and
|
||||
:class:`~django.forms.CheckboxSelectMultiple`, which always return
|
||||
``False`` because an unchecked checkbox doesn't appear in the data of
|
||||
an HTML form submission, so it's unknown whether or not the user
|
||||
actually submitted a value.
|
||||
|
||||
``MultiWidget``
|
||||
---------------
|
||||
|
||||
Reference in New Issue
Block a user