summaryrefslogtreecommitdiff
path: root/tests/gis_tests
diff options
context:
space:
mode:
authorFlorian Apolloner <florian@apolloner.eu>2022-03-17 07:19:18 +0100
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2022-03-17 07:36:34 +0100
commit58ad9a99a744b036fa69c4d03eca5618ea949f93 (patch)
tree5ffb23ecf831edaa1b4ee42896bd90e0370ba5ff /tests/gis_tests
parente458abc5931861e72f18b5d218726f9add7028cd (diff)
downloaddjango-58ad9a99a744b036fa69c4d03eca5618ea949f93.tar.gz
Removed usage of django.db.utils.ConnectionHandler.databases.
Diffstat (limited to 'tests/gis_tests')
-rw-r--r--tests/gis_tests/inspectapp/tests.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/gis_tests/inspectapp/tests.py b/tests/gis_tests/inspectapp/tests.py
index 6ff3a33fc4..0145483f6b 100644
--- a/tests/gis_tests/inspectapp/tests.py
+++ b/tests/gis_tests/inspectapp/tests.py
@@ -204,7 +204,7 @@ def get_ogr_db_string():
GDAL will create its own connection to the database, so we re-use the
connection settings from the Django test.
"""
- db = connections.databases["default"]
+ db = connections.settings["default"]
# Map from the django backend into the OGR driver name and database identifier
# https://gdal.org/drivers/vector/