summaryrefslogtreecommitdiff
path: root/docs/howto
diff options
context:
space:
mode:
authorClaude Paroz <claude@2xlibre.net>2013-07-04 15:19:33 +0200
committerClaude Paroz <claude@2xlibre.net>2013-07-05 19:30:08 +0200
commita9dd6221af2148410c8a26dcbafd1ff8cc0fb107 (patch)
treebc246344db3a47a6d2340bb6429bd0dbed0f8d20 /docs/howto
parent430aae1b0db9fbcc15415b7bd9a14df1d88359cf (diff)
[1.6.x] Fixed #20224 -- Update docs examples which mention __unicode__
Thanks Marc Tamlyn and Tim Graham for the review. Backport of 7442eb1a24 from master.
Diffstat (limited to 'docs/howto')
-rw-r--r--docs/howto/custom-model-fields.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/howto/custom-model-fields.txt b/docs/howto/custom-model-fields.txt
index 85c71004f4..5a5bef9141 100644
--- a/docs/howto/custom-model-fields.txt
+++ b/docs/howto/custom-model-fields.txt
@@ -710,9 +710,9 @@ smoothly:
behavior of the field code is to call
:func:`~django.utils.encoding.force_text` on the value. (In our
examples in this document, ``value`` would be a ``Hand`` instance, not a
- ``HandField``). So if your ``__unicode__()`` method automatically
- converts to the string form of your Python object, you can save yourself
- a lot of work.
+ ``HandField``). So if your ``__unicode__()`` method (``__str__()`` on
+ Python 3) automatically converts to the string form of your Python object,
+ you can save yourself a lot of work.
Writing a ``FileField`` subclass