diff options
| author | Justin Bronn <jbronn@gmail.com> | 2009-03-31 16:02:44 +0000 |
|---|---|---|
| committer | Justin Bronn <jbronn@gmail.com> | 2009-03-31 16:02:44 +0000 |
| commit | f6524d9c1ff89b0d5d4387e0c2abdaff9a7c2995 (patch) | |
| tree | 7cbde5dbb9e0cbd05f38e5ccd15258bc887f7430 | |
| parent | 510a16679d74b4a04df1b8552c6dc15ea2714463 (diff) | |
[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
| -rw-r--r-- | django/contrib/gis/models.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/django/contrib/gis/models.py b/django/contrib/gis/models.py index 4453dd89fc..3bc3fd13a9 100644 --- a/django/contrib/gis/models.py +++ b/django/contrib/gis/models.py @@ -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 |
