#28067: Encoding error when __str__ returns non-ASCII
--------------------------------------+------------------------------------
     Reporter:  Christophe Pettus     |                    Owner:  nobody
         Type:  Cleanup/optimization  |                   Status:  new
    Component:  Documentation         |                  Version:  master
     Severity:  Normal                |               Resolution:
     Keywords:                        |             Triage Stage:  Accepted
    Has patch:  0                     |      Needs documentation:  0
  Needs tests:  0                     |  Patch needs improvement:  0
Easy pickings:  0                     |                    UI/UX:  0
--------------------------------------+------------------------------------
Changes (by Simon Charette):

 * status:  closed => new
 * type:  Bug => Cleanup/optimization
 * component:  Database layer (models, ORM) => Documentation
 * version:  1.11 => master
 * resolution:  invalid =>
 * stage:  Unreviewed => Accepted


Comment:

 I think the documentation assumes the reader knows that ''returning text''
 means returning `unicode` on Python 2 and `str` on Python 3. Wouldn't hurt
 to adjust the example to disambiguate that as basing `__str__` methods
 output on related objects `__str__` output is commonly used pattern.

--
Ticket URL: <https://code.djangoproject.com/ticket/28067#comment:5>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/061.71d6304938250cc2949347226795c2c2%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to