equal
deleted
inserted
replaced
|
1 from django.db import connection |
|
2 |
|
3 if hasattr(connection.ops, 'spatial_version'): |
|
4 from warnings import warn |
|
5 warn('The `django.contrib.gis.db.backend` module was refactored and ' |
|
6 'renamed to `django.contrib.gis.db.backends` in 1.2. ' |
|
7 'All functionality of `SpatialBackend` ' |
|
8 'has been moved to the `ops` attribute of the spatial database ' |
|
9 'backend. A `SpatialBackend` alias is provided here for ' |
|
10 'backwards-compatibility, but will be removed in 1.3.') |
|
11 SpatialBackend = connection.ops |