diff options
Diffstat (limited to 'django')
| -rw-r--r-- | django/contrib/gis/geos/geometry.py | 4 | ||||
| -rw-r--r-- | django/contrib/gis/tests/geoapp/tests.py | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/django/contrib/gis/geos/geometry.py b/django/contrib/gis/geos/geometry.py index 9299d3e397..00094c93fe 100644 --- a/django/contrib/gis/geos/geometry.py +++ b/django/contrib/gis/geos/geometry.py @@ -134,8 +134,8 @@ class GEOSGeometry(GEOSBase, ListMixin): return self.clone() def __str__(self): - "WKT is used for the string representation." - return self.wkt + "EWKT is used for the string representation." + return self.ewkt def __repr__(self): "Short-hand representation because WKT may be very large." diff --git a/django/contrib/gis/tests/geoapp/tests.py b/django/contrib/gis/tests/geoapp/tests.py index d5a4cd541e..b9e7a58b70 100644 --- a/django/contrib/gis/tests/geoapp/tests.py +++ b/django/contrib/gis/tests/geoapp/tests.py @@ -214,7 +214,7 @@ class GeoModelTest(TestCase): call_command('dumpdata', 'geoapp.City', stdout=out) result = out.getvalue() houston = City.objects.get(name='Houston') - self.assertIn('"point": "%s"' % houston.point.wkt, result) + self.assertIn('"point": "%s"' % houston.point.ewkt, result) # Reload now dumped data with NamedTemporaryFile(mode='w', suffix='.json') as tempfile: |
