From 3a0950739bc0947c2ae336b54905361a73f2871d Mon Sep 17 00:00:00 2001 From: Justin Bronn Date: Tue, 31 Mar 2009 15:49:25 +0000 Subject: [PATCH] Fixed #9437 -- Now close database connection within `get_srid_info`. Thanks, mattxbart. git-svn-id: http://code.djangoproject.com/svn/django/trunk@10254 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/contrib/gis/models.py | 1 + 1 file changed, 1 insertion(+) diff --git a/django/contrib/gis/models.py b/django/contrib/gis/models.py index c27d60311e5..ca27c8821f4 100644 --- a/django/contrib/gis/models.py +++ b/django/contrib/gis/models.py @@ -286,6 +286,7 @@ if not PYTHON23: srs_wkt = SpatialReference(fetched[0]).wkt else: srs_wkt = fetched[0] + connection.close() # Getting metadata associated with the spatial reference system identifier. # Specifically, getting the unit information and spheroid information