mirror of
https://github.com/django/django.git
synced 2025-07-19 03:05:32 +00:00
Fixed #21951 -- Updated docs to use __str__ for Python 3
Thanks Tim Graham for the report and recommendations
This commit is contained in:
parent
c3434fed5b
commit
8aa1efff6d
20 changed files with 71 additions and 72 deletions
|
@ -727,7 +727,7 @@ Save these changes and start a new Python interactive shell by running
|
|||
|
||||
>>> from polls.models import Question, Choice
|
||||
|
||||
# Make sure our __unicode__() addition worked.
|
||||
# Make sure our __str__() addition worked.
|
||||
>>> Question.objects.all()
|
||||
[<Question: What's up?>]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue