From f6524d9c1ff89b0d5d4387e0c2abdaff9a7c2995 Mon Sep 17 00:00:00 2001 From: Justin Bronn Date: Tue, 31 Mar 2009 16:02:44 +0000 Subject: [PATCH] [1.0.X] Fixed #9437 -- Now close database connection within `get_srid_info`. Thanks, mattxbart. Backport of r10254 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10255 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 4453dd89fc..3bc3fd13a9 100644 --- a/django/contrib/gis/models.py +++ b/django/contrib/gis/models.py @@ -266,6 +266,7 @@ if _srid_info: raise ValueError('Failed to find spatial reference entry in "%s" corresponding to SRID=%s.' % (SpatialRefSys._meta.db_table, srid)) srs_wkt = fetched[0] + connection.close() # Getting metadata associated with the spatial reference system identifier. # Specifically, getting the unit information and spheroid information