summaryrefslogtreecommitdiff
path: root/django/contrib/gis/db/models/sql/compiler.py
diff options
context:
space:
mode:
authorCarl Meyer <carl@oddbird.net>2012-02-22 05:26:50 +0000
committerCarl Meyer <carl@oddbird.net>2012-02-22 05:26:50 +0000
commit354c84d277e3a9516cd2af1567eb02cb4da1a3e4 (patch)
tree5e72bff88028889e482ea5b8b865c8886f17add0 /django/contrib/gis/db/models/sql/compiler.py
parent3ac0961e1ec3f935474e3c1c3f16bee1cc5ae54a (diff)
Fixed #17678 -- Corrected setup of _meta.proxy_for_model and added _meta.concrete_model. Thanks Anssi Kääriäinen.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17573 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/contrib/gis/db/models/sql/compiler.py')
-rw-r--r--django/contrib/gis/db/models/sql/compiler.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/django/contrib/gis/db/models/sql/compiler.py b/django/contrib/gis/db/models/sql/compiler.py
index a7c3fbc406..07eea32b69 100644
--- a/django/contrib/gis/db/models/sql/compiler.py
+++ b/django/contrib/gis/db/models/sql/compiler.py
@@ -2,7 +2,6 @@ from itertools import izip
from django.db.backends.util import truncate_name, typecast_timestamp
from django.db.models.sql import compiler
from django.db.models.sql.constants import TABLE_NAME, MULTI
-from django.db.models.sql.query import get_proxied_model
SQLCompiler = compiler.SQLCompiler
@@ -116,7 +115,7 @@ class GeoSQLCompiler(compiler.SQLCompiler):
aliases = set()
only_load = self.deferred_to_columns()
# Skip all proxy to the root proxied model
- proxied_model = get_proxied_model(opts)
+ proxied_model = opts.concrete_model
if start_alias:
seen = {None: start_alias}