diff options
| author | Tim Graham <timograham@gmail.com> | 2014-06-03 07:38:12 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2014-06-03 07:38:12 -0400 |
| commit | 593b3c32bd299c7f03cf1a62173d0c4d23a4e975 (patch) | |
| tree | c264cdb49faf68a8519f34f21ba39a4e4074ee95 /docs/ref | |
| parent | 4445d36d471aae81086ed785536687a92e5aaa6d (diff) | |
| parent | f39b8867a1b30d6e9f1dff2a544c89354dd55b0d (diff) | |
Merge pull request #2756 from tubaman/return_unicode
Unicode method on model should return unicode
Diffstat (limited to 'docs/ref')
| -rw-r--r-- | docs/ref/models/instances.txt | 2 |
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 |
