Refs #27576 -- Fixed running Django's tests if GDAL isn't installed.

This commit is contained in:
Tim Graham 2016-12-15 17:09:21 -05:00
parent b01ceae843
commit 3215bc98fe
1 changed files with 1 additions and 1 deletions

View File

@ -5,7 +5,6 @@ from django.contrib.gis.db.models.lookups import (
RasterBandTransform, gis_lookups,
)
from django.contrib.gis.db.models.proxy import SpatialProxy
from django.contrib.gis.gdal import SpatialReference
from django.contrib.gis.gdal.error import GDALException
from django.contrib.gis.geometry.backend import Geometry, GeometryException
from django.core.exceptions import ImproperlyConfigured
@ -26,6 +25,7 @@ def get_srid_info(srid, connection):
given SRID from the `spatial_ref_sys` (or equivalent) spatial database
table for the given database connection. These results are cached.
"""
from django.contrib.gis.gdal import SpatialReference
global _srid_cache
try: