summaryrefslogtreecommitdiff
path: root/docs/ref
diff options
context:
space:
mode:
authorChris Beaven <smileychris@gmail.com>2011-04-06 10:33:32 +0000
committerChris Beaven <smileychris@gmail.com>2011-04-06 10:33:32 +0000
commit91e59aeca0d4a554c418629999d1d9e758912c5c (patch)
tree2d5398714d9d99f4b490157528dd7c854fcfe582 /docs/ref
parentab9e596ca65eec5aa021b2d0a4d6c975d0869cb5 (diff)
Fixes #10786 -- Document that NullBooleanField should be used rather than BooleanField with null=True. Thanks sbj3 for the patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16020 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/ref')
-rw-r--r--docs/ref/models/fields.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/ref/models/fields.txt b/docs/ref/models/fields.txt
index fbd9fb78f8..8d61b90e1d 100644
--- a/docs/ref/models/fields.txt
+++ b/docs/ref/models/fields.txt
@@ -59,6 +59,9 @@ string, not ``NULL``.
coerced for string-based fields that have the empty string as a possible
value, and the value ``NULL`` will be stored to denote the empty string.
+If you want to accept :attr:`~Field.null` values with :class:`BooleanField`,
+use :class:`NullBooleanField` instead.
+
``blank``
---------
@@ -341,6 +344,9 @@ A true/false field.
The admin represents this as a checkbox.
+If you need to accept :attr:`~Field.null` values then use
+:class:`NullBooleanField` instead.
+
.. versionchanged:: 1.2
In previous versions of Django when running under MySQL ``BooleanFields``