Code

Ticket #4687: unicode.txt.patch

File unicode.txt.patch, 627 bytes (added by anonymous, 7 years ago)
  • unicode.txt

     
    231231course. However, Django's ``Model`` base class automatically provides you with 
    232232a ``__str__()`` method that calls your ``__unicode__()`` method and then 
    233233encodes the result correctly into UTF-8. So you would normally only create a 
    234 ``__unicode__()`` method and let Django handle the coercion to a bytestring 
     234``__unicode__()`` method and let Django handle the correction to a bytestring 
    235235when required. 
    236236 
    237237Taking care in ``get_absolute_url()``