Author: jbronn
Date: 2009-03-31 10:49:25 -0500 (Tue, 31 Mar 2009)
New Revision: 10254

Modified:
   django/trunk/django/contrib/gis/models.py
Log:
Fixed #9437 -- Now close database connection within `get_srid_info`.  Thanks, 
mattxbart.


Modified: django/trunk/django/contrib/gis/models.py
===================================================================
--- django/trunk/django/contrib/gis/models.py   2009-03-31 15:42:58 UTC (rev 
10253)
+++ django/trunk/django/contrib/gis/models.py   2009-03-31 15:49:25 UTC (rev 
10254)
@@ -286,6 +286,7 @@
                 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


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to