From 7d1e23775344cc3dead03bd4af45f4fdf134b819 Mon Sep 17 00:00:00 2001 From: heathervm Date: Fri, 31 Mar 2017 07:10:08 -0700 Subject: Fixed #27993 -- Fixed model form default fallback for SelectMultiple. --- docs/ref/forms/widgets.txt | 11 ++++++----- docs/releases/1.10.7.txt | 3 +++ docs/topics/forms/modelforms.txt | 12 +++++++----- 3 files changed, 16 insertions(+), 10 deletions(-) (limited to 'docs') diff --git a/docs/ref/forms/widgets.txt b/docs/ref/forms/widgets.txt index 9cc474aae6..828033352a 100644 --- a/docs/ref/forms/widgets.txt +++ b/docs/ref/forms/widgets.txt @@ -297,11 +297,12 @@ foundation for custom widgets. The method's result affects whether or not a field in a model form :ref:`falls back to its default `. - 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. + Special cases are :class:`~django.forms.CheckboxInput`, + :class:`~django.forms.CheckboxSelectMultiple`, and + :class:`~django.forms.SelectMultiple`, which always return + ``False`` because an unchecked checkbox and unselected + ```` +don't appear in the data of an HTML form submission. Use a custom form field or +widget if you're designing an API and want the default fallback behavior for a +field that uses one of these widgets. This ``save()`` method accepts an optional ``commit`` keyword argument, which accepts either ``True`` or ``False``. If you call ``save()`` with -- cgit v1.3