Ticket #6608: model_api_docs_typo_patch.diff
File model_api_docs_typo_patch.diff, 674 bytes (added by , 17 years ago) |
---|
-
docs/model-api.txt
1872 1872 1873 1873 If you define a ``__unicode__()`` method on your model and not a ``__str__()`` 1874 1874 method, Django will automatically provide you with a ``__str__()`` that calls 1875 ``__unicode ()__`` and then converts the result correctly to a UTF-8 encoded1875 ``__unicode__()`` and then converts the result correctly to a UTF-8 encoded 1876 1876 string object. This is recommended development practice: define only 1877 1877 ``__unicode__()`` and let Django take care of the conversion to string objects 1878 1878 when required.