diff options
| author | Claude Paroz <claude@2xlibre.net> | 2015-01-17 00:17:54 +0100 |
|---|---|---|
| committer | Claude Paroz <claude@2xlibre.net> | 2015-01-30 20:29:05 +0100 |
| commit | c77dd64402e64e3e53b49634175f1e010a480b67 (patch) | |
| tree | 22510b6b8c473feca53217da9ce14f6ca756422b /django/db/models/sql | |
| parent | 7060ef71581c740bcc28ed405225537a411c36b5 (diff) | |
[1.8.x] Fixed #14483 -- Allowed using subqueries with GIS lookups
Backport of a0b5f15ea5f from master.
Diffstat (limited to 'django/db/models/sql')
| -rw-r--r-- | django/db/models/sql/compiler.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/db/models/sql/compiler.py b/django/db/models/sql/compiler.py index 5b647888d1..8f3af37031 100644 --- a/django/db/models/sql/compiler.py +++ b/django/db/models/sql/compiler.py @@ -466,7 +466,7 @@ class SQLCompiler(object): if obj.low_mark == 0 and obj.high_mark is None and not self.query.distinct_fields: # If there is no slicing in use, then we can safely drop all ordering obj.clear_ordering(True) - return obj.get_compiler(connection=self.connection).as_sql() + return obj.get_compiler(connection=self.connection).as_sql(subquery=True) def get_default_columns(self, start_alias=None, opts=None, from_parent=None): """ |
