summaryrefslogtreecommitdiff
path: root/docs/intro/tutorial01.txt
diff options
context:
space:
mode:
authorKaren Tracey <kmtracey@gmail.com>2009-05-26 16:46:56 +0000
committerKaren Tracey <kmtracey@gmail.com>2009-05-26 16:46:56 +0000
commit5dc30c9fd2c7cff0d511ffdcc285a4cd9f56c73a (patch)
tree4c613aad48b43acb5986ad22fe0b19ccbd16cfa3 /docs/intro/tutorial01.txt
parent5e20adcdf684462261f2c51dc2a4fd30389b650d (diff)
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.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@10843 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/intro/tutorial01.txt')
-rw-r--r--docs/intro/tutorial01.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/intro/tutorial01.txt b/docs/intro/tutorial01.txt
index a97359667f..c0ad3dd8cf 100644
--- a/docs/intro/tutorial01.txt
+++ b/docs/intro/tutorial01.txt
@@ -595,16 +595,16 @@ prompt, but also because objects' representations are used throughout Django's
automatically-generated admin.
.. admonition:: Why :meth:`~django.db.models.Model.__unicode__` and not
- :meth:`django.db.models.Model.__str__`?
+ :meth:`~django.db.models.Model.__str__`?
If you're familiar with Python, you might be in the habit of adding
- :meth:`django.db.models.Model.__str__` methods to your classes, not
+ :meth:`~django.db.models.Model.__str__` methods to your classes, not
:meth:`~django.db.models.Model.__unicode__` methods. We use
:meth:`~django.db.models.Model.__unicode__` here because Django models deal
with Unicode by default. All data stored in your database is converted to
Unicode when it's returned.
- Django models have a default :meth:`django.db.models.Model.__str__` method
+ Django models have a default :meth:`~django.db.models.Model.__str__` method
that calls :meth:`~django.db.models.Model.__unicode__` and converts the
result to a UTF-8 bytestring. This means that ``unicode(p)`` will return a
Unicode string, and ``str(p)`` will return a normal string, with characters