Commit bc19ff64 authored by Claude Paroz's avatar Claude Paroz
Browse files

Fixed #22793 -- Updated import location for GeometryColumns in tests

The old location was removed in cebd8753.
Thanks Aymeric Augustin for the report.
parent cecbb713
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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