Fixed #15124 -- Changed the default for BooleanField.

Thanks to the many contributors who updated and improved the patch over
the life of this ticket.
This commit is contained in:
Aymeric Augustin 2013-03-24 13:47:01 +01:00
parent ae417dd4d5
commit e16c48e001
6 changed files with 37 additions and 7 deletions

View file

@ -377,6 +377,10 @@ The default form widget for this field is a
If you need to accept :attr:`~Field.null` values then use
:class:`NullBooleanField` instead.
.. versionchanged:: 1.6
The default value of ``BooleanField`` was changed from ``False`` to
``None`` when :attr:`Field.default` isn't defined.
``CharField``
-------------