mirror of
https://github.com/django/django.git
synced 2025-05-22 23:06:30 +00:00
git-svn-id: http://code.djangoproject.com/svn/django/trunk@13097 bcc190cf-cafb-0310-a4f2-bffc1f526a37
10 lines
390 B
Python
10 lines
390 B
Python
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()
|