From 5fa4f40f45fcdbb7e48489ed3039a314b5c961d0 Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Sat, 6 May 2017 10:56:28 -0400 Subject: Fixed #29227 -- Allowed BooleanField to be null=True. Thanks Lynn Cyrin for contributing to the patch, and Nick Pope for review. --- docs/topics/forms/modelforms.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'docs/topics/forms') diff --git a/docs/topics/forms/modelforms.txt b/docs/topics/forms/modelforms.txt index 553271e598..ec7c7a0587 100644 --- a/docs/topics/forms/modelforms.txt +++ b/docs/topics/forms/modelforms.txt @@ -67,7 +67,9 @@ Model field Form field ``True`` on the model field, otherwise not represented in the form. -:class:`BooleanField` :class:`~django.forms.BooleanField` +:class:`BooleanField` :class:`~django.forms.BooleanField`, or + :class:`~django.forms.NullBooleanField` if + ``null=True``. :class:`CharField` :class:`~django.forms.CharField` with ``max_length`` set to the model field's -- cgit v1.3