/django/contrib/gis/models.py
Python | 9 lines | 5 code | 1 blank | 3 comment | 1 complexity | 518cd0050b3fc442468c06231ffcf8c7 MD5 | raw file
Possible License(s): BSD-3-Clause
- from django.db import connection
- if (hasattr(connection.ops, 'spatial_version') and
- not connection.ops.mysql):
- # Getting the `SpatialRefSys` and `GeometryColumns`
- # models for the default spatial backend. These
- # aliases are provided for backwards-compatibility.
- SpatialRefSys = connection.ops.spatial_ref_sys()
- GeometryColumns = connection.ops.geometry_columns()