Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

…8426.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@8431 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit aeb7639951944c3a4cceb1d9598fa19dc8aaa5ea 1 parent e6780ac
@jbronn jbronn authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/contrib/gis/db/models/sql/query.py
View
2  django/contrib/gis/db/models/sql/query.py
@@ -55,7 +55,7 @@ def get_columns(self, with_aliases=False):
"""
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:
Please sign in to comment.
Something went wrong with that request. Please try again.