/django/contrib/gis/models.py

https://code.google.com/p/mango-py/ · Python · 9 lines · 5 code · 1 blank · 3 comment · 1 complexity · 518cd0050b3fc442468c06231ffcf8c7 MD5 · raw file

  1. from django.db import connection
  2. if (hasattr(connection.ops, 'spatial_version') and
  3. not connection.ops.mysql):
  4. # Getting the `SpatialRefSys` and `GeometryColumns`
  5. # models for the default spatial backend. These
  6. # aliases are provided for backwards-compatibility.
  7. SpatialRefSys = connection.ops.spatial_ref_sys()
  8. GeometryColumns = connection.ops.geometry_columns()