Fixed a broken link in docs/intro/tutorial01.txt.
This commit is contained in:
parent
df075c7489
commit
ec020cab7e
|
@ -696,7 +696,7 @@ automatically-generated admin.
|
||||||
:meth:`~django.db.models.Model.__unicode__` and converts the result to a
|
:meth:`~django.db.models.Model.__unicode__` and converts the result to a
|
||||||
UTF-8 bytestring. This means that ``unicode(p)`` will return a Unicode
|
UTF-8 bytestring. This means that ``unicode(p)`` will return a Unicode
|
||||||
string, and ``str(p)`` will return a bytestring, with characters encoded
|
string, and ``str(p)`` will return a bytestring, with characters encoded
|
||||||
as UTF-8. Python does the opposite: :class:`object` has a ``__unicode__``
|
as UTF-8. Python does the opposite: ``object`` has a ``__unicode__``
|
||||||
method that calls ``__str__`` and interprets the result as an ASCII
|
method that calls ``__str__`` and interprets the result as an ASCII
|
||||||
bytestring. This difference can create confusion.
|
bytestring. This difference can create confusion.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue