Browse files

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
  • Loading branch information...
1 parent f2df365 commit 3a0950739bc0947c2ae336b54905361a73f2871d @jbronn jbronn committed Mar 31, 2009
Showing with 1 addition and 0 deletions.
  1. +1 −0 django/contrib/gis/models.py
View
1 django/contrib/gis/models.py
@@ -286,6 +286,7 @@ def get_srid_info(srid):
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

0 comments on commit 3a09507

Please sign in to comment.