diff options
| author | Jon Dufresne <jon.dufresne@gmail.com> | 2016-06-05 07:54:24 -0700 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2016-06-06 12:12:27 -0400 |
| commit | df4382341a0a3201db25d2d82ab86b1cd72ffab1 (patch) | |
| tree | 9419df5f5b855014bf45f47a427f4edacd86674c /docs/ref | |
| parent | 73d64a020cedebb6d78f8b3e2355a10b7a663635 (diff) | |
[1.9.x] Added some links to the TypedChoiceField docs.
Backport of 31a9a965a36c5ce923692e5dac430ea6a1cbf2a0 from master
Diffstat (limited to 'docs/ref')
| -rw-r--r-- | docs/ref/forms/fields.txt | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/docs/ref/forms/fields.txt b/docs/ref/forms/fields.txt index 9e848a0a1f..5cdc3d86f0 100644 --- a/docs/ref/forms/fields.txt +++ b/docs/ref/forms/fields.txt @@ -425,11 +425,12 @@ For each field, we describe the default widget used if you don't specify .. class:: TypedChoiceField(**kwargs) Just like a :class:`ChoiceField`, except :class:`TypedChoiceField` takes two - extra arguments, ``coerce`` and ``empty_value``. + extra arguments, :attr:`coerce` and :attr:`empty_value`. * Default widget: :class:`Select` - * Empty value: Whatever you've given as ``empty_value`` - * Normalizes to: A value of the type provided by the ``coerce`` argument. + * Empty value: Whatever you've given as :attr:`empty_value`. + * Normalizes to: A value of the type provided by the :attr:`coerce` + argument. * Validates that the given value exists in the list of choices and can be coerced. * Error message keys: ``required``, ``invalid_choice`` |
