Fixed type in MySQL spatial backend.
This commit is contained in:
parent
cd99c12f05
commit
d99639da03
|
@ -44,7 +44,7 @@ class MySQLOperations(DatabaseOperations, BaseSpatialOperations):
|
||||||
modify the placeholder based on the contents of the given value.
|
modify the placeholder based on the contents of the given value.
|
||||||
"""
|
"""
|
||||||
if hasattr(value, 'expression'):
|
if hasattr(value, 'expression'):
|
||||||
placeholder = placeholder % self.get_expression_column(value)
|
placeholder = self.get_expression_column(value)
|
||||||
else:
|
else:
|
||||||
placeholder = '%s(%%s)' % self.from_text
|
placeholder = '%s(%%s)' % self.from_text
|
||||||
return placeholder
|
return placeholder
|
||||||
|
|
Loading…
Reference in New Issue