mirror of
https://github.com/django/django.git
synced 2024-12-01 15:42:04 +01:00
Simplified GeometryField.select_format().
This commit is contained in:
parent
b81905bfd4
commit
e9a370bb6a
@ -17,7 +17,7 @@ class BaseSpatialOperations:
|
|||||||
spatial_version = None
|
spatial_version = None
|
||||||
|
|
||||||
# How the geometry column should be selected.
|
# How the geometry column should be selected.
|
||||||
select = None
|
select = '%s'
|
||||||
|
|
||||||
@cached_property
|
@cached_property
|
||||||
def select_extent(self):
|
def select_extent(self):
|
||||||
|
@ -266,8 +266,7 @@ class GeometryField(BaseSpatialField):
|
|||||||
of the spatial backend. For example, Oracle and MySQL require custom
|
of the spatial backend. For example, Oracle and MySQL require custom
|
||||||
selection formats in order to retrieve geometries in OGC WKB.
|
selection formats in order to retrieve geometries in OGC WKB.
|
||||||
"""
|
"""
|
||||||
select = compiler.connection.ops.select
|
return compiler.connection.ops.select % sql, params
|
||||||
return select % sql if select else sql, params
|
|
||||||
|
|
||||||
|
|
||||||
# The OpenGIS Geometry Type Fields
|
# The OpenGIS Geometry Type Fields
|
||||||
|
Loading…
Reference in New Issue
Block a user