summaryrefslogtreecommitdiff
path: root/docs/ref/forms
diff options
context:
space:
mode:
authorJulien Phalip <jphalip@gmail.com>2011-09-12 07:12:28 +0000
committerJulien Phalip <jphalip@gmail.com>2011-09-12 07:12:28 +0000
commit4e47df9de20ab12070fcb92ef2176ece7847e5f5 (patch)
tree441a9ab218dd3eaa03f43b97771bbcfb1e517269 /docs/ref/forms
parent9fe050a27598cdce7f2ef7a332b4818b493a8702 (diff)
Fixed #16291 -- Documented that TypedChoiceField does not coerce empty_value. Thanks to vanschelven and taavi223.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16820 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/ref/forms')
-rw-r--r--docs/ref/forms/fields.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/docs/ref/forms/fields.txt b/docs/ref/forms/fields.txt
index 33aa62bffb..dbb10346fe 100644
--- a/docs/ref/forms/fields.txt
+++ b/docs/ref/forms/fields.txt
@@ -379,7 +379,9 @@ Takes extra arguments:
.. attribute:: TypedChoiceField.empty_value
The value to use to represent "empty." Defaults to the empty string;
- ``None`` is another common choice here.
+ ``None`` is another common choice here. Note that this value will not be
+ coerced by the function given in the ``coerce`` argument, so choose it
+ accordingly.
``DateField``
~~~~~~~~~~~~~