Fixed `GeoQuery.get_columns()` to be compatible with the changes in r8426.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@8431 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Justin Bronn 2008-08-18 02:59:25 +00:00
parent e6780acaf2
commit aeb7639951
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ class GeoQuery(sql.Query):
"""
qn = self.quote_name_unless_alias
qn2 = self.connection.ops.quote_name
result = ['(%s) AS %s' % (self.get_extra_select_format(alias) % col, qn2(alias))
result = ['(%s) AS %s' % (self.get_extra_select_format(alias) % col[0], qn2(alias))
for alias, col in self.extra_select.iteritems()]
aliases = set(self.extra_select.keys())
if with_aliases: