mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Removed ability to pass a geometry string to GIS functions
This was a possible confusion source with column name arguments. Thanks Sergey Fedoseev for the suggestion.
This commit is contained in:
@@ -516,9 +516,7 @@ class DistanceFunctionsTests(TestCase):
|
||||
dist_qs = [dist1]
|
||||
else:
|
||||
dist2 = SouthTexasCityFt.objects.annotate(distance=Distance('point', lagrange)).order_by('id')
|
||||
# Using EWKT string parameter.
|
||||
dist3 = SouthTexasCityFt.objects.annotate(distance=Distance('point', lagrange.ewkt)).order_by('id')
|
||||
dist_qs = [dist1, dist2, dist3]
|
||||
dist_qs = [dist1, dist2]
|
||||
|
||||
# Original query done on PostGIS, have to adjust AlmostEqual tolerance
|
||||
# for Oracle.
|
||||
|
||||
Reference in New Issue
Block a user