mirror of
https://github.com/django/django.git
synced 2025-12-23 09:19:27 +00:00
Fixed #25499 -- Added the ability to pass an expression in distance lookups
Thanks Bibhas Debnath for the report and Tim Graham for the review.
This commit is contained in:
parent
4a7b58210d
commit
37d06cfc46
8 changed files with 84 additions and 33 deletions
|
|
@ -195,7 +195,7 @@ class OracleOperations(BaseSpatialOperations, DatabaseOperations):
|
|||
"""
|
||||
return 'MDSYS.SDO_GEOMETRY'
|
||||
|
||||
def get_distance(self, f, value, lookup_type):
|
||||
def get_distance(self, f, value, lookup_type, **kwargs):
|
||||
"""
|
||||
Returns the distance parameters given the value and the lookup type.
|
||||
On Oracle, geometry columns with a geodetic coordinate system behave
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue