summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorClaude Paroz <claude@2xlibre.net>2015-01-29 20:12:08 +0100
committerClaude Paroz <claude@2xlibre.net>2015-04-22 19:54:17 +0200
commitea27e26b0907e74ab8d6c46a9694775a310fdc67 (patch)
tree498245e5155bb6cc1853ffb0c0b863d3cbf2559a /docs
parent71e20814fcb5983bdc96a6b15765b8f6abd11542 (diff)
Deprecated legacy GeoManager/GeoQuerySet methods
Diffstat (limited to 'docs')
-rw-r--r--docs/internals/deprecation.txt2
-rw-r--r--docs/releases/1.9.txt10
2 files changed, 12 insertions, 0 deletions
diff --git a/docs/internals/deprecation.txt b/docs/internals/deprecation.txt
index 026aa916c8..98432a7e38 100644
--- a/docs/internals/deprecation.txt
+++ b/docs/internals/deprecation.txt
@@ -35,6 +35,8 @@ details on these changes.
* The ``django.contrib.auth.tests.utils.skipIfCustomUser()`` decorator will be
removed.
+* The ``GeoManager`` and ``GeoQuerySet`` classes will be removed.
+
.. _deprecation-removed-in-2.0:
2.0
diff --git a/docs/releases/1.9.txt b/docs/releases/1.9.txt
index 0d0f3d5e01..dcf948c810 100644
--- a/docs/releases/1.9.txt
+++ b/docs/releases/1.9.txt
@@ -400,6 +400,16 @@ of its methods and attributes are either changed or renamed.
The aim of these changes is to provide a documented API for relation fields.
+``GeoManager`` and ``GeoQuerySet`` custom methods
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+All custom ``GeoQuerySet`` methods (``area()``, ``distance()``, ``gml()``, ...)
+have been replaced by equivalent geographic expressions in annotations (see in
+new features). Hence the need to set a custom ``GeoManager`` to GIS-enabled
+models is now obsolete. As soon as your code doesn't call any of the deprecated
+methods, you can simply remove the ``objects = GeoManager()`` lines from your
+models.
+
Miscellaneous
~~~~~~~~~~~~~