Tutoria Page 1: django.db.models.Model.__str__() used instead of __str__()
On page 1 of the Tutorial there is a info box called "Why unicode() and not django.db.models.Model.str()?". I think this is supposed to be str() and not django.db.models.Model.str(). The box is detailing the reason that django chose to use the unicode method over the typical str method that is usually added to python classes. This is supported by reading the first sentence. If you're familiar with Python, you might be in the habit of adding django.db.models.Model.str() methods to your classes, not unicode() methods.
To fix this i would change the django.db.models.Model.str() to just str()
Change History
(3)
Owner: |
changed from nobody to Karen Tracey
|
Status: |
new → assigned
|
Triage Stage: |
Unreviewed → Accepted
|
Resolution: |
→ fixed
|
Status: |
assigned → closed
|
The markup to create the cross-references for
__str__
is missing an apparently-required leading~
.