PageRenderTime 218ms CodeModel.GetById 97ms app.highlight 1ms RepoModel.GetById 120ms app.codeStats 0ms

/django/contrib/gis/models.py

https://code.google.com/p/mango-py/
Python | 9 lines | 5 code | 1 blank | 3 comment | 2 complexity | 518cd0050b3fc442468c06231ffcf8c7 MD5 | raw file
1from django.db import connection
2
3if (hasattr(connection.ops, 'spatial_version') and
4    not connection.ops.mysql):
5    # Getting the `SpatialRefSys` and `GeometryColumns`
6    # models for the default spatial backend.  These
7    # aliases are provided for backwards-compatibility.
8    SpatialRefSys = connection.ops.spatial_ref_sys()
9    GeometryColumns = connection.ops.geometry_columns()