Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
Justin Bronn authored August 18, 2008
2  django/contrib/gis/db/models/sql/query.py
@@ -55,7 +55,7 @@ def get_columns(self, with_aliases=False):
55 55
         """
56 56
         qn = self.quote_name_unless_alias
57 57
         qn2 = self.connection.ops.quote_name
58  
-        result = ['(%s) AS %s' % (self.get_extra_select_format(alias) % col, qn2(alias)) 
  58
+        result = ['(%s) AS %s' % (self.get_extra_select_format(alias) % col[0], qn2(alias)) 
59 59
                   for alias, col in self.extra_select.iteritems()]
60 60
         aliases = set(self.extra_select.keys())
61 61
         if with_aliases:

0 notes on commit aeb7639

Please sign in to comment.
Something went wrong with that request. Please try again.