Ticket #9437: models.py.diff

File models.py.diff, 622 bytes (added by Matt Bartolome, 15 years ago)

gis contrib models.py add connection.close() in get_srid_info

  • django/contrib/gis/models.py

     
    266266            raise ValueError('Failed to find spatial reference entry in "%s" corresponding to SRID=%s.' %
    267267                             (SpatialRefSys._meta.db_table, srid))
    268268        srs_wkt = fetched[0]
     269        connection.close()
    269270
    270271        # Getting metadata associated with the spatial reference system identifier.
    271272        # Specifically, getting the unit information and spheroid information
Back to Top