mirror of
https://github.com/django/django.git
synced 2025-04-22 00:04:43 +00:00
[1.5.x] Ensured gis tests aren't run on non-gis Oracle
Backpatch of b55de81b9e4d820a223c066022050a0df0ee1dd0
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…
x
Reference in New Issue
Block a user