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
1 changed files with 2 additions and 2 deletions

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