aboutsummaryrefslogtreecommitdiffstats
path: root/api-guide/fields/index.html
diff options
context:
space:
mode:
authorTom Christie2014-12-17 16:23:42 +0000
committerTom Christie2014-12-17 16:23:42 +0000
commit760da25c6018eff02b3aab33dc6fea7c93881d9f (patch)
treecda0f7ea1821d3054be7f9e9251e37b4c06281b7 /api-guide/fields/index.html
parentc05c1f5c7cf562634382c25716d7a7588794f107 (diff)
downloaddjango-rest-framework-760da25c6018eff02b3aab33dc6fea7c93881d9f.tar.bz2
Update documentation
Diffstat (limited to 'api-guide/fields/index.html')
-rw-r--r--api-guide/fields/index.html1
1 files changed, 1 insertions, 0 deletions
diff --git a/api-guide/fields/index.html b/api-guide/fields/index.html
index eb3fc6f3..c2575416 100644
--- a/api-guide/fields/index.html
+++ b/api-guide/fields/index.html
@@ -628,6 +628,7 @@ color_channel = serializers.ChoiceField(
<h1 id="boolean-fields">Boolean fields</h1>
<h2 id="booleanfield">BooleanField</h2>
<p>A boolean representation.</p>
+<p>When using HTML encoded form input be aware that omitting a value will always be treated as setting a field to <code>False</code>, even if it has a <code>default=True</code> option specified. This is because HTML checkbox inputs represent the unchecked state by omitting the value, so REST framework treats omission as if it is an empty checkbox input.</p>
<p>Corresponds to <code>django.db.models.fields.BooleanField</code>.</p>
<p><strong>Signature:</strong> <code>BooleanField()</code></p>
<h2 id="nullbooleanfield">NullBooleanField</h2>