Fixed type in MySQL spatial backend.

This commit is contained in:
Justin Bronn 2012-10-05 18:49:59 -07:00
parent cd99c12f05
commit d99639da03
1 changed files with 1 additions and 1 deletions

View File

@ -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