mirror of https://github.com/django/django.git
Fixed #22793 -- Updated import location for GeometryColumns in tests
The old location was removed in cebd8753c6
.
Thanks Aymeric Augustin for the report.
This commit is contained in:
parent
cecbb71312
commit
bc19ff6479
|
@ -11,9 +11,9 @@ from django.test import TransactionTestCase
|
||||||
if HAS_SPATIAL_DB:
|
if HAS_SPATIAL_DB:
|
||||||
from django.contrib.gis.db.models import fields
|
from django.contrib.gis.db.models import fields
|
||||||
try:
|
try:
|
||||||
from django.contrib.gis.models import GeometryColumns
|
GeometryColumns = connection.ops.geometry_columns()
|
||||||
HAS_GEOMETRY_COLUMNS = True
|
HAS_GEOMETRY_COLUMNS = True
|
||||||
except ImportError:
|
except NotImplementedError:
|
||||||
HAS_GEOMETRY_COLUMNS = False
|
HAS_GEOMETRY_COLUMNS = False
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue