Added changes missing from previous commit.
Sorry.
This commit is contained in:
parent
e16c48e001
commit
e12aad2d57
@ -298,13 +298,13 @@ connections.
|
|||||||
When a :class:`~django.db.models.BooleanField` doesn't have an explicit
|
When a :class:`~django.db.models.BooleanField` doesn't have an explicit
|
||||||
:attr:`~django.db.models.Field.default`, the implicit default value is
|
:attr:`~django.db.models.Field.default`, the implicit default value is
|
||||||
``None``. In previous version of Django, it was ``False``, but that didn't
|
``None``. In previous version of Django, it was ``False``, but that didn't
|
||||||
represent accurantely the lack of a value.
|
represent accurately the lack of a value.
|
||||||
|
|
||||||
Code that relies on the default value being ``False`` may raise an exception
|
Code that relies on the default value being ``False`` may raise an exception
|
||||||
when saving new model instances to the database, because ``None`` isn't an
|
when saving new model instances to the database, because ``None`` isn't an
|
||||||
acceptable value for a :class:`~django.db.models.BooleanField`. You should
|
acceptable value for a :class:`~django.db.models.BooleanField`. You should
|
||||||
either specify ``default=False`` explicitly on the field definition, or ensure
|
either specify ``default=False`` in the field definition, or ensure the field
|
||||||
the field is set to ``True`` or ``False`` before saving the object.
|
is set to ``True`` or ``False`` before saving the object.
|
||||||
|
|
||||||
Translations and comments in templates
|
Translations and comments in templates
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
Loading…
x
Reference in New Issue
Block a user