1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Fixed #29227 -- Allowed BooleanField to be null=True.

Thanks Lynn Cyrin for contributing to the patch, and Nick Pope for review.
This commit is contained in:
Tim Graham
2017-05-06 10:56:28 -04:00
parent 73f7d1755f
commit 5fa4f40f45
32 changed files with 158 additions and 98 deletions

View File

@@ -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