Removed rounding of coordinates
This commit is contained in:
parent
ab2304a6fa
commit
4d54c84b51
|
|
@ -24,7 +24,7 @@ class CustomGeoSpatialFilteringFilterBackend(GeoSpatialFilteringFilterBackend):
|
|||
else:
|
||||
result_part = (first[1] + second[1]) / 2
|
||||
|
||||
return round((first[0] + second[0]) / 2, 2), round(result_part, 2)
|
||||
return (first[0] + second[0]) / 2, result_part
|
||||
|
||||
def filter_queryset(self, request, queryset, view):
|
||||
ret = super().filter_queryset(request, queryset, view)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user