Ticket #6608: model_api_docs_typo_patch.diff

File model_api_docs_typo_patch.diff, 674 bytes (added by Lawrence Hudson, 17 years ago)
  • docs/model-api.txt

     
    18721872
    18731873If you define a ``__unicode__()`` method on your model and not a ``__str__()``
    18741874method, Django will automatically provide you with a ``__str__()`` that calls
    1875 ``__unicode()__`` and then converts the result correctly to a UTF-8 encoded
     1875``__unicode__()`` and then converts the result correctly to a UTF-8 encoded
    18761876string object. This is recommended development practice: define only
    18771877``__unicode__()`` and let Django take care of the conversion to string objects
    18781878when required.
Back to Top