Permalink
Browse files

Removed duplicated code from `django.contrib.gis.db.backend` and adde…

…d a deprecation note about the module.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@13103 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 26149d8 commit 33d4aa8df121f1fa3019aa6663d02b547d38aa80 @jbronn jbronn committed May 5, 2010
Showing with 3 additions and 13 deletions.
  1. +0 −13 django/contrib/gis/db/backend/__init__.py
  2. +3 −0 docs/internals/deprecation.txt
View
13 django/contrib/gis/db/backend/__init__.py
@@ -9,16 +9,3 @@
'backend. A `SpatialBackend` alias is provided here for '
'backwards-compatibility, but will be removed in 1.3.')
SpatialBackend = connection.ops
-
-from django.db import connection
-
-if hasattr(connection.ops, 'spatial_version'):
- from warnings import warn
- warn('The `django.contrib.gis.db.backend` module was refactored and '
- 'renamed to `django.contrib.gis.db.backends` in 1.2. '
- 'All functionality of `SpatialBackend` '
- 'has been moved to the `ops` attribute of the spatial database '
- 'backend. A `SpatialBackend` alias is provided here for '
- 'backwards-compatibility, but will be removed in 1.3.')
- SpatialBackend = connection.ops
-
View
3 docs/internals/deprecation.txt
@@ -17,6 +17,9 @@ their deprecation, as per the :ref:`Django deprecation policy
``supports_object_permissions`` and ``supports_anonymous_user``.
The old backend style is deprecated since the 1.2 release.
+ * The :mod:`django.contrib.gis.db.backend` module, including the
+ ``SpatialBackend`` interface, is deprecated since the 1.2 release.
+
* 1.4
* ``CsrfResponseMiddleware``. This has been deprecated since the 1.2
release, in favour of the template tag method for inserting the CSRF

0 comments on commit 33d4aa8

Please sign in to comment.