mirror of
https://github.com/django/django.git
synced 2025-07-18 16:49:13 +00:00
[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
This commit is contained in:
parent
510a16679d
commit
f6524d9c1f
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user