diff options
| author | Claude Paroz <claude@2xlibre.net> | 2013-07-04 15:19:33 +0200 |
|---|---|---|
| committer | Claude Paroz <claude@2xlibre.net> | 2013-07-05 19:30:08 +0200 |
| commit | a9dd6221af2148410c8a26dcbafd1ff8cc0fb107 (patch) | |
| tree | bc246344db3a47a6d2340bb6429bd0dbed0f8d20 /docs/intro | |
| parent | 430aae1b0db9fbcc15415b7bd9a14df1d88359cf (diff) | |
[1.6.x] Fixed #20224 -- Update docs examples which mention __unicode__
Thanks Marc Tamlyn and Tim Graham for the review.
Backport of 7442eb1a24 from master.
Diffstat (limited to 'docs/intro')
| -rw-r--r-- | docs/intro/overview.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/intro/overview.txt b/docs/intro/overview.txt index 77838ffcaa..55366fb2c6 100644 --- a/docs/intro/overview.txt +++ b/docs/intro/overview.txt @@ -31,6 +31,7 @@ the file ``mysite/news/models.py``:: class Reporter(models.Model): full_name = models.CharField(max_length=70) + # On Python 3: def __str__(self): def __unicode__(self): return self.full_name @@ -40,6 +41,7 @@ the file ``mysite/news/models.py``:: content = models.TextField() reporter = models.ForeignKey(Reporter) + # On Python 3: def __str__(self): def __unicode__(self): return self.headline |
