Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#11205 closed (fixed)

Tutoria Page 1: django.db.models.Model.__str__() used instead of __str__()

Reported by: WickedMetalHead Owned by: Karen Tracey
Component: Documentation Version: 1.0
Severity: Keywords:
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

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)

comment:1 by Karen Tracey, 15 years ago

Owner: changed from nobody to Karen Tracey
Status: newassigned
Triage Stage: UnreviewedAccepted

The markup to create the cross-references for __str__ is missing an apparently-required leading ~.

comment:2 by Karen Tracey, 15 years ago

Resolution: fixed
Status: assignedclosed

(In [10843]) Fixed #11205 -- Made the links to the str method description look the same as the links to the unicode method description in the tutorial part 1. Having one be fully qualified while the other was not was odd-looking.

comment:3 by Karen Tracey, 15 years ago

(In [10844]) [1.0.X] Fixed #11205 -- Made the links to the str method description look the same as the links to the unicode method description in the tutorial part 1. Having one be fully qualified while the other was not was odd-looking.

r10843 from trunk.

Note: See TracTickets for help on using tickets.
Back to Top