mirror of https://github.com/django/django.git
Ensured gis tests aren't run on non-gis Oracle
This commit is contained in:
parent
a5152bb646
commit
b55de81b9e
|
@ -26,7 +26,7 @@ mysql = _default_db == 'mysql'
|
||||||
spatialite = _default_db == 'spatialite'
|
spatialite = _default_db == 'spatialite'
|
||||||
|
|
||||||
HAS_SPATIALREFSYS = True
|
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
|
from django.contrib.gis.db.backends.oracle.models import SpatialRefSys
|
||||||
elif postgis:
|
elif postgis:
|
||||||
from django.contrib.gis.db.backends.postgis.models import SpatialRefSys
|
from django.contrib.gis.db.backends.postgis.models import SpatialRefSys
|
||||||
|
|
Loading…
Reference in New Issue