diff options
| author | Justin Bronn <jbronn@gmail.com> | 2008-12-06 01:52:14 +0000 |
|---|---|---|
| committer | Justin Bronn <jbronn@gmail.com> | 2008-12-06 01:52:14 +0000 |
| commit | 4058429708da7380385a28959ba10a51cda7f05a (patch) | |
| tree | 7215fcee08291e59248e98ce1d80da4760881f5c /django/contrib/gis/db/models/sql/query.py | |
| parent | 8370e7ca876f305c88863aa84f624b01d6add04e (diff) | |
Fixed #9572 -- use `opts` argument. Thanks SeanL for bug report and patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@9572 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/contrib/gis/db/models/sql/query.py')
| -rw-r--r-- | django/contrib/gis/db/models/sql/query.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/contrib/gis/db/models/sql/query.py b/django/contrib/gis/db/models/sql/query.py index 92c26fa126..52f521d500 100644 --- a/django/contrib/gis/db/models/sql/query.py +++ b/django/contrib/gis/db/models/sql/query.py @@ -122,7 +122,7 @@ class GeoQuery(sql.Query): table_alias = start_alias else: table_alias = self.tables[0] - root_pk = self.model._meta.pk.column + root_pk = opts.pk.column seen = {None: table_alias} aliases = set() for field, model in opts.get_fields_with_model(): |
