summaryrefslogtreecommitdiff
path: root/docs/ref/contrib/gis/tutorial.txt
diff options
context:
space:
mode:
authorAlasdair Nicol <alasdair@thenicols.net>2014-02-09 11:38:13 +0000
committerTim Graham <timograham@gmail.com>2014-02-13 07:12:40 -0500
commit8aa1efff6d6cb1589a1977f3e68f4c26eb6adc74 (patch)
treed75b3a6366e036dcf72313b65b165c8189421812 /docs/ref/contrib/gis/tutorial.txt
parentc3434fed5bb223b2765a85f88053d42b70d81ad9 (diff)
Fixed #21951 -- Updated docs to use __str__ for Python 3
Thanks Tim Graham for the report and recommendations
Diffstat (limited to 'docs/ref/contrib/gis/tutorial.txt')
-rw-r--r--docs/ref/contrib/gis/tutorial.txt3
1 files changed, 1 insertions, 2 deletions
diff --git a/docs/ref/contrib/gis/tutorial.txt b/docs/ref/contrib/gis/tutorial.txt
index ff27c9b6ec..24470e8227 100644
--- a/docs/ref/contrib/gis/tutorial.txt
+++ b/docs/ref/contrib/gis/tutorial.txt
@@ -244,8 +244,7 @@ model to represent this data::
objects = models.GeoManager()
# Returns the string representation of the model.
- # On Python 3: def __str__(self):
- def __unicode__(self):
+ def __str__(self): # __unicode__ on Python 2
return self.name
Please note two important things: