Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[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
  • Loading branch information...
commit f6524d9c1ff89b0d5d4387e0c2abdaff9a7c2995 1 parent 510a166
Justin Bronn jbronn authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  django/contrib/gis/models.py
1  django/contrib/gis/models.py
View
@@ -266,6 +266,7 @@ def get_srid_info(srid):
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
Please sign in to comment.
Something went wrong with that request. Please try again.