fixed bug in last commit, thanks User

This commit is contained in:
mdipierro
2013-12-09 17:55:53 -06:00
parent 53122bfa9f
commit cda7c66637
2 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -1 +1 @@
Version 2.8.2-stable+timestamp.2013.12.09.17.05.33
Version 2.8.2-stable+timestamp.2013.12.09.17.54.55
+3 -2
View File
@@ -2984,8 +2984,9 @@ class PostgreSQLAdapter(BaseAdapter):
"""
http://postgis.org/docs/ST_Within.html
"""
return 'ST_DWithin(%s,%s)' %(self.expand(first), self.expand(second, first.type),
self.expand(third, 'double'))
return 'ST_DWithin(%s,%s,%s)' %(self.expand(first),
self.expand(second, first.type),
self.expand(third, 'double'))
def represent(self, obj, fieldtype):
field_is_type = fieldtype.startswith