From e548d08f243335b4f11190417830a5f3027efd2a Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Fri, 31 Oct 2014 15:55:45 -0400 Subject: [PATCH] Renamed SpatiaLite feature flag introduced in refs #23152. Thanks Doug Goldstein for the suggestion. --- django/contrib/gis/db/backends/spatialite/base.py | 2 +- django/contrib/gis/db/backends/spatialite/creation.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/django/contrib/gis/db/backends/spatialite/base.py b/django/contrib/gis/db/backends/spatialite/base.py index db6895814a..e51ffbef3a 100644 --- a/django/contrib/gis/db/backends/spatialite/base.py +++ b/django/contrib/gis/db/backends/spatialite/base.py @@ -22,7 +22,7 @@ class DatabaseFeatures(BaseSpatialFeatures, SQLiteDatabaseFeatures): supports_num_points_poly = False @cached_property - def supports_initspatialmetadata_with_transactions(self): + def supports_initspatialmetadata_in_one_transaction(self): # SpatiaLite 4.1+ support initializing all metadata in one transaction # which can result in a significant performance improvement when # creating the database. diff --git a/django/contrib/gis/db/backends/spatialite/creation.py b/django/contrib/gis/db/backends/spatialite/creation.py index 54f4cd0b89..6c6ab98bfb 100644 --- a/django/contrib/gis/db/backends/spatialite/creation.py +++ b/django/contrib/gis/db/backends/spatialite/creation.py @@ -36,5 +36,5 @@ class SpatiaLiteCreation(DatabaseCreation): Creates the spatial metadata tables. """ cur = self.connection._cursor() - arg = "1" if self.connection.features.supports_initspatialmetadata_with_transactions else "" + arg = "1" if self.connection.features.supports_initspatialmetadata_in_one_transaction else "" cur.execute("SELECT InitSpatialMetaData(%s)" % arg)