summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2014-06-03 07:38:12 -0400
committerTim Graham <timograham@gmail.com>2014-06-03 07:38:12 -0400
commit593b3c32bd299c7f03cf1a62173d0c4d23a4e975 (patch)
treec264cdb49faf68a8519f34f21ba39a4e4074ee95
parent4445d36d471aae81086ed785536687a92e5aaa6d (diff)
parentf39b8867a1b30d6e9f1dff2a544c89354dd55b0d (diff)
Merge pull request #2756 from tubaman/return_unicode
Unicode method on model should return unicode
-rw-r--r--docs/ref/models/instances.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/ref/models/instances.txt b/docs/ref/models/instances.txt
index 2cbce35447..45c538a782 100644
--- a/docs/ref/models/instances.txt
+++ b/docs/ref/models/instances.txt
@@ -444,7 +444,7 @@ For example::
last_name = models.CharField(max_length=50)
def __unicode__(self):
- return '%s %s' % (self.first_name, self.last_name)
+ return u'%s %s' % (self.first_name, self.last_name)
If you define a ``__unicode__()`` method on your model and not a
:meth:`~Model.__str__()` method, Django will automatically provide you with a