summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Bronn <jbronn@gmail.com>2009-03-31 15:49:25 +0000
committerJustin Bronn <jbronn@gmail.com>2009-03-31 15:49:25 +0000
commit3a0950739bc0947c2ae336b54905361a73f2871d (patch)
tree70a6e24f1f6d978f842eb79c5a228c360cd089c6
parentf2df3650d6d576c4e8186378b101da99b2f49fb7 (diff)
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
-rw-r--r--django/contrib/gis/models.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/django/contrib/gis/models.py b/django/contrib/gis/models.py
index c27d60311e..ca27c8821f 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