1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

Removed usage of django.db.utils.ConnectionHandler.databases.

This commit is contained in:
Florian Apolloner
2022-03-17 07:19:18 +01:00
committed by Mariusz Felisiak
parent e458abc593
commit 58ad9a99a7
2 changed files with 4 additions and 4 deletions

View File

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