Ensured gis tests aren't run on non-gis Oracle

This commit is contained in:
Anssi Kääriäinen 2012-10-27 18:10:41 +03:00
parent a5152bb646
commit b55de81b9e
1 changed files with 1 additions and 1 deletions

View File

@ -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