File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -223,7 +223,7 @@ def prepare(self, obj):
223
223
return None
224
224
225
225
pnt = ensure_point (value )
226
- pnt_lng , pnt_lat = pnt .get_coords ()
226
+ pnt_lng , pnt_lat = pnt .coords
227
227
return "%s,%s" % (pnt_lat , pnt_lng )
228
228
229
229
def convert (self , value ):
Original file line number Diff line number Diff line change @@ -127,7 +127,7 @@ def _get_distance(self):
127
127
if not hasattr (self , self ._point_of_origin ['field' ]):
128
128
raise SpatialError ("The field '%s' was not included in search results, so the distance could not be calculated." % self ._point_of_origin ['field' ])
129
129
130
- po_lng , po_lat = self ._point_of_origin ['point' ].get_coords ()
130
+ po_lng , po_lat = self ._point_of_origin ['point' ].coords
131
131
location_field = getattr (self , self ._point_of_origin ['field' ])
132
132
133
133
if location_field is None :
Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ def test_order_by_distance(self):
87
87
self .assertIn ('distance_point' , params )
88
88
self .assertDictEqual (params ['distance_point' ], {'field' : 'location' ,
89
89
'point' : p })
90
- self .assertTupleEqual (params ['distance_point' ]['point' ].get_coords () , (1.23 , 4.56 ))
90
+ self .assertTupleEqual (params ['distance_point' ]['point' ].coords , (1.23 , 4.56 ))
91
91
92
92
self .assertListEqual (params ['sort_by' ], ['distance' ])
93
93
You can’t perform that action at this time.
0 commit comments