Skip to content
Browse files

Fixed type in MySQL spatial backend.

  • Loading branch information...
1 parent cd99c12 commit d99639da035f3465633f18c78eee239fd18fce21 @jbronn jbronn committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 django/contrib/gis/db/backends/mysql/operations.py
View
2 django/contrib/gis/db/backends/mysql/operations.py
@@ -44,7 +44,7 @@ def get_geom_placeholder(self, value, srid):
modify the placeholder based on the contents of the given value.
"""
if hasattr(value, 'expression'):
- placeholder = placeholder % self.get_expression_column(value)
+ placeholder = self.get_expression_column(value)
else:
placeholder = '%s(%%s)' % self.from_text
return placeholder

0 comments on commit d99639d

Please sign in to comment.
Something went wrong with that request. Please try again.