summaryrefslogtreecommitdiff
path: root/docs/topics
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2016-09-30 14:49:50 -0400
committerGitHub <noreply@github.com>2016-09-30 14:49:50 -0400
commit87c5e7efebd040aef0f0479ccf86877155bb5cea (patch)
tree7306b48f0da0844ca0f0f2e4347d9453eb11012e /docs/topics
parent1d25eb9688f1a245737490dccf8ba54b6c907052 (diff)
Refs #27186 -- Fixed model form default fallback for CheckboxSelectMultiple.
Diffstat (limited to 'docs/topics')
-rw-r--r--docs/topics/forms/modelforms.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/topics/forms/modelforms.txt b/docs/topics/forms/modelforms.txt
index e0b957f9b3..bc0c124014 100644
--- a/docs/topics/forms/modelforms.txt
+++ b/docs/topics/forms/modelforms.txt
@@ -337,7 +337,8 @@ doesn't validate -- i.e., if ``form.errors`` evaluates to ``True``.
If an optional field doesn't appear in the form's data, the resulting model
instance uses the model field :attr:`~django.db.models.Field.default`, if
there is one, for that field. This behavior doesn't apply to fields that use
-:class:`~django.forms.CheckboxInput` (or any custom widget whose
+:class:`~django.forms.CheckboxInput` and
+:class:`~django.forms.CheckboxSelectMultiple` (or any custom widget whose
:meth:`~django.forms.Widget.value_omitted_from_data` method always returns
``False``) since an unchecked checkbox doesn't appear in the data of an HTML
form submission. Use a custom form field or widget if you're designing an API