1
0
mirror of https://github.com/django/django.git synced 2024-12-24 18:16:19 +00:00

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:
Claude Paroz 2014-06-21 14:07:30 +02:00
parent cecbb71312
commit bc19ff6479

View File

@ -11,9 +11,9 @@ from django.test import TransactionTestCase
if HAS_SPATIAL_DB:
from django.contrib.gis.db.models import fields
try:
from django.contrib.gis.models import GeometryColumns
GeometryColumns = connection.ops.geometry_columns()
HAS_GEOMETRY_COLUMNS = True
except ImportError:
except NotImplementedError:
HAS_GEOMETRY_COLUMNS = False