From 34288ec2f2d78d39c0d71ab479bb67f131139bc3 Mon Sep 17 00:00:00 2001 From: Justin Bronn Date: Sat, 29 Jan 2011 08:10:20 +0000 Subject: [PATCH] Fixed example use of deprecated function in GeoDjango tutorial. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15358 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- docs/ref/contrib/gis/tutorial.txt | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/docs/ref/contrib/gis/tutorial.txt b/docs/ref/contrib/gis/tutorial.txt index 9deeb788731..d4cb18a237f 100644 --- a/docs/ref/contrib/gis/tutorial.txt +++ b/docs/ref/contrib/gis/tutorial.txt @@ -630,14 +630,13 @@ in transformation SQL, allowing the developer to work at a higher level of abstraction:: >>> qs = WorldBorders.objects.filter(mpoly__intersects=pnt) - >>> qs.query.as_sql() # Generating the SQL - ('SELECT "world_worldborders"."id", "world_worldborders"."name", "world_worldborders"."area", + >>> print qs.query # Generating the SQL + SELECT "world_worldborders"."id", "world_worldborders"."name", "world_worldborders"."area", "world_worldborders"."pop2005", "world_worldborders"."fips", "world_worldborders"."iso2", "world_worldborders"."iso3", "world_worldborders"."un", "world_worldborders"."region", "world_worldborders"."subregion", "world_worldborders"."lon", "world_worldborders"."lat", "world_worldborders"."mpoly" FROM "world_worldborders" - WHERE ST_Intersects("world_worldborders"."mpoly", ST_Transform(%s, 4326))', - (,)) + WHERE ST_Intersects("world_worldborders"."mpoly", ST_Transform(%s, 4326)) >>> qs # printing evaluates the queryset []