From a0f3eeccf3d5a90f9914bfe20b15df05673ea59d Mon Sep 17 00:00:00 2001 From: Claude Paroz Date: Mon, 18 Nov 2013 18:24:56 +0100 Subject: Fixed #21397 -- Re-added flexibility to TypedChoiceField coercion Thanks Elec for the report and Simon Charette for the review. --- docs/ref/forms/fields.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'docs/ref/forms') diff --git a/docs/ref/forms/fields.txt b/docs/ref/forms/fields.txt index 81b65d04d4..f2cd122526 100644 --- a/docs/ref/forms/fields.txt +++ b/docs/ref/forms/fields.txt @@ -375,7 +375,9 @@ For each field, we describe the default widget used if you don't specify A function that takes one argument and returns a coerced value. Examples include the built-in ``int``, ``float``, ``bool`` and other types. Defaults - to an identity function. + to an identity function. Note that coercion happens after input + validation, so it is possible to coerce to a value not present in + ``choices``. .. attribute:: empty_value -- cgit v1.3