From 8aa1efff6d6cb1589a1977f3e68f4c26eb6adc74 Mon Sep 17 00:00:00 2001 From: Alasdair Nicol Date: Sun, 9 Feb 2014 11:38:13 +0000 Subject: Fixed #21951 -- Updated docs to use __str__ for Python 3 Thanks Tim Graham for the report and recommendations --- docs/ref/contrib/gis/tutorial.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'docs/ref/contrib/gis/tutorial.txt') 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: -- cgit v1.3