1
0
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:
Claude Paroz
2015-11-07 14:43:33 +01:00
parent 24c1605aa0
commit c3531d2f20
2 changed files with 3 additions and 13 deletions

View File

@@ -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.