diff options
| author | Tom Christie | 2014-12-17 15:24:01 +0000 | 
|---|---|---|
| committer | Tom Christie | 2014-12-17 15:24:01 +0000 | 
| commit | ad6533e554663a4c6c40fb02c7d7341fb5afe47f (patch) | |
| tree | 107d0736824ab8000e26ea4e4be6ef13075d706b /docs/api-guide | |
| parent | ffc099a2561be259e6ca378886c0e969a2b5db94 (diff) | |
| parent | 3fff5cb6e0960b7ff8abd9f13a075f1f057de0a7 (diff) | |
| download | django-rest-framework-ad6533e554663a4c6c40fb02c7d7341fb5afe47f.tar.bz2 | |
Merge pull request #2294 from tomchristie/fix-empty-html-values-with-default
Fix empty HTML values when a default is provided.
Diffstat (limited to 'docs/api-guide')
| -rw-r--r-- | docs/api-guide/fields.md | 2 | 
1 files changed, 2 insertions, 0 deletions
| diff --git a/docs/api-guide/fields.md b/docs/api-guide/fields.md index e4ef1d4a..f06db56c 100644 --- a/docs/api-guide/fields.md +++ b/docs/api-guide/fields.md @@ -112,6 +112,8 @@ Two options are currently used in HTML form generation, `'input_type'` and `'bas  A boolean representation. +When using HTML encoded form input be aware that omitting a value will always be treated as setting a field to `False`, even if it has a `default=True` 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. +  Corresponds to `django.db.models.fields.BooleanField`.  **Signature:** `BooleanField()` | 
