diff options
| author | Claude Paroz <claude@2xlibre.net> | 2013-07-04 15:19:33 +0200 |
|---|---|---|
| committer | Claude Paroz <claude@2xlibre.net> | 2013-07-05 19:27:07 +0200 |
| commit | 7442eb1a242ecf9d186d4e7de1b94e360e04782d (patch) | |
| tree | 018a1fd5cf541393ae157dcf4a5ae1954616f633 /docs/howto | |
| parent | 577b0f91894469872974ad609b4fabca949cdc1b (diff) | |
Fixed #20224 -- Update docs examples which mention __unicode__
Thanks Marc Tamlyn and Tim Graham for the review.
Diffstat (limited to 'docs/howto')
| -rw-r--r-- | docs/howto/custom-model-fields.txt | 6 |
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 |
