diff options
| author | Tim Graham <timograham@gmail.com> | 2017-05-06 10:56:28 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2018-03-20 12:10:10 -0400 |
| commit | 5fa4f40f45fcdbb7e48489ed3039a314b5c961d0 (patch) | |
| tree | 272b8798d2c2a054f56d8613a42453bce30f92c0 /docs/topics | |
| parent | 73f7d1755ff1da3aac687c7b046e4b5028e505db (diff) | |
Fixed #29227 -- Allowed BooleanField to be null=True.
Thanks Lynn Cyrin for contributing to the patch, and Nick Pope for review.
Diffstat (limited to 'docs/topics')
| -rw-r--r-- | docs/topics/forms/modelforms.txt | 4 |
1 files changed, 3 insertions, 1 deletions
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 |
