mirror of
https://github.com/django/django.git
synced 2025-04-24 01:04:39 +00:00
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'
|
||||
|
||||
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…
x
Reference in New Issue
Block a user