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