mirror of https://github.com/django/django.git
[1.5.x] Ensured gis tests aren't run on non-gis Oracle
Backpatch of b55de81b9e
This commit is contained in:
parent
7cf2858747
commit
15ea36dfc0
|
@ -26,7 +26,7 @@ mysql = _default_db == 'mysql'
|
|||
spatialite = _default_db == 'spatialite'
|
||||
|
||||
HAS_SPATIALREFSYS = True
|
||||
if oracle:
|
||||
if oracle and 'gis' in settings.DATABASES[DEFAULT_DB_ALIAS]['ENGINE']:
|
||||
from django.contrib.gis.db.backends.oracle.models import SpatialRefSys
|
||||
elif postgis:
|
||||
from django.contrib.gis.db.backends.postgis.models import SpatialRefSys
|
||||
|
|
Loading…
Reference in New Issue