summaryrefslogtreecommitdiff
path: root/docs/howto
diff options
context:
space:
mode:
authorSrinivas Reddy Thatiparthy <thatiparthysreenivas@gmail.com>2018-05-25 20:53:13 +0530
committerTim Graham <timograham@gmail.com>2018-05-25 21:32:27 -0400
commitecb825abe24d27682041d7ff5eba1cca55d261f3 (patch)
treed0a6facd781356928a2fdc38fa162c1026a3352e /docs/howto
parent6b91152a103f7c5cbefcf44741e6b03611724714 (diff)
[2.1.x] Fixed #29423 -- Documented Field.value_from_object().
Backport of 4c35a173e881deaff17e5343181dcbc36177a4af from master
Diffstat (limited to 'docs/howto')
-rw-r--r--docs/howto/custom-model-fields.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/howto/custom-model-fields.txt b/docs/howto/custom-model-fields.txt
index 8ecfee8709..9d7e28b164 100644
--- a/docs/howto/custom-model-fields.txt
+++ b/docs/howto/custom-model-fields.txt
@@ -679,8 +679,8 @@ Converting field data for serialization
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To customize how the values are serialized by a serializer, you can override
-:meth:`~Field.value_to_string`. Using ``value_from_object()`` is the best way
-to get the field's value prior to serialization. For example, since our
+:meth:`~Field.value_to_string`. Using :meth:`~Field.value_from_object` is the
+best way to get the field's value prior to serialization. For example, since
``HandField`` uses strings for its data storage anyway, we can reuse some
existing conversion code::