diff options
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 |
