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
This commit is contained in:
Julien Phalip 2011-09-12 07:12:28 +00:00
parent 9fe050a275
commit 4e47df9de2
1 changed files with 3 additions and 1 deletions

View File

@ -379,7 +379,9 @@ Takes extra arguments:
.. attribute:: TypedChoiceField.empty_value .. attribute:: TypedChoiceField.empty_value
The value to use to represent "empty." Defaults to the empty string; 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`` ``DateField``
~~~~~~~~~~~~~ ~~~~~~~~~~~~~