0
0
mirror of https://github.com/django/django.git synced 2024-12-01 15:42:04 +01:00

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

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: