mirror of
https://github.com/django/django.git
synced 2025-12-18 06:41:50 +00:00
Update converters to take a consistent set of parameters.
As suggested by Anssi. This has the slightly strange side effect of passing the expression to Expression.convert_value has the expression passed back to it, but it allows more complex patterns of expressions.
This commit is contained in:
parent
4755f8fc25
commit
32d4db66b9
19 changed files with 44 additions and 46 deletions
|
|
@ -127,7 +127,7 @@ class OracleOperations(BaseSpatialOperations, DatabaseOperations):
|
|||
converters.append(self.convert_geometry)
|
||||
return converters
|
||||
|
||||
def convert_geometry(self, value, expression, context):
|
||||
def convert_geometry(self, value, expression, connection, context):
|
||||
if value:
|
||||
value = Geometry(value)
|
||||
if 'transformed_srid' in context:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue