From 32ab8c0340cc96ad466b5cffa93434b2bfdba6d5 Mon Sep 17 00:00:00 2001 From: Jon Dufresne Date: Sun, 5 Jun 2016 07:54:24 -0700 Subject: [PATCH] [1.10.x] Added some links to the TypedChoiceField docs. Backport of 31a9a965a36c5ce923692e5dac430ea6a1cbf2a0 from master --- docs/ref/forms/fields.txt | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/ref/forms/fields.txt b/docs/ref/forms/fields.txt index e6490d6ca66..ee1b59943bf 100644 --- a/docs/ref/forms/fields.txt +++ b/docs/ref/forms/fields.txt @@ -415,11 +415,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``