Skip to content
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: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 510a166 commit f6524d9c1ff89b0d5d4387e0c2abdaff9a7c2995 @jbronn jbronn committed
Showing with 1 addition and 0 deletions.
  1. +1 −0  django/contrib/gis/
1  django/contrib/gis/
@@ -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

0 comments on commit f6524d9

Please sign in to comment.
Something went wrong with that request. Please try again.