summaryrefslogtreecommitdiff
path: root/docs/ref/forms
diff options
context:
space:
mode:
Diffstat (limited to 'docs/ref/forms')
-rw-r--r--docs/ref/forms/fields.txt14
1 files changed, 14 insertions, 0 deletions
diff --git a/docs/ref/forms/fields.txt b/docs/ref/forms/fields.txt
index 882da96658..9cff981022 100644
--- a/docs/ref/forms/fields.txt
+++ b/docs/ref/forms/fields.txt
@@ -913,6 +913,20 @@ For each field, we describe the default widget used if you don't specify
* Normalizes to: A Python ``True``, ``False`` or ``None`` value.
* Validates nothing (i.e., it never raises a ``ValidationError``).
+ ``NullBooleanField`` may be used with widgets such as
+ :class:`~django.forms.Select` or :class:`~django.forms.RadioSelect`
+ by providing the widget ``choices``::
+
+ NullBooleanField(
+ widget=Select(
+ choices=[
+ ('', 'Unknown'),
+ (True, 'Yes'),
+ (False, 'No'),
+ ]
+ )
+ )
+
``RegexField``
--------------