[1.8.x] Fixed gis_tests when run without GIS dependencies.

Backport of ed336a1a5d from master
This commit is contained in:
Tim Graham 2015-04-16 19:59:53 -04:00
parent 9e5e4914ef
commit d0b18542f7
1 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
from __future__ import unicode_literals from __future__ import unicode_literals
from django.contrib.gis.geos import HAS_GEOS, Point from django.contrib.gis.geos import HAS_GEOS
from django.contrib.gis.measure import D # alias for Distance from django.contrib.gis.measure import D # alias for Distance
from django.db import connection from django.db import connection
from django.db.models import Q from django.db.models import Q
@ -9,7 +9,7 @@ from django.test import TestCase, skipUnlessDBFeature
from ..utils import no_oracle, oracle, postgis, spatialite from ..utils import no_oracle, oracle, postgis, spatialite
if HAS_GEOS: if HAS_GEOS:
from django.contrib.gis.geos import GEOSGeometry, LineString from django.contrib.gis.geos import GEOSGeometry, LineString, Point
from .models import (AustraliaCity, Interstate, SouthTexasInterstate, from .models import (AustraliaCity, Interstate, SouthTexasInterstate,
SouthTexasCity, SouthTexasCityFt, CensusZipcode, SouthTexasZipcode) SouthTexasCity, SouthTexasCityFt, CensusZipcode, SouthTexasZipcode)