From a20671c4899d918ba8baf8d733cd5d29c8bf25b4 Mon Sep 17 00:00:00 2001 From: Sergey Fedoseev Date: Wed, 1 Jun 2016 20:49:55 +0600 Subject: [PATCH] Refs #25645 -- Removed SpatiaLite 3.x compatibility in SpatialiteSpatialRefSys.wkt. Complements 47f22e828618581ecd4203d369a939fdfcff3a8b. --- django/contrib/gis/db/backends/spatialite/models.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/django/contrib/gis/db/backends/spatialite/models.py b/django/contrib/gis/db/backends/spatialite/models.py index 9f60add880b..7dca8896eef 100644 --- a/django/contrib/gis/db/backends/spatialite/models.py +++ b/django/contrib/gis/db/backends/spatialite/models.py @@ -58,10 +58,7 @@ class SpatialiteSpatialRefSys(models.Model, SpatialRefSysMixin): @property def wkt(self): - if hasattr(self, 'srtext'): - return self.srtext - from django.contrib.gis.gdal import SpatialReference - return SpatialReference(self.proj4text).wkt + return self.srtext class Meta: app_label = 'gis'