Skip to content

Commit 94aaf94

Browse files
committed
Fix spatial lookup links
1 parent 47d7819 commit 94aaf94

File tree

2 files changed

+22
-12
lines changed

2 files changed

+22
-12
lines changed

docs/ref/contrib/gis.rst

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,21 +18,26 @@ Each model field stores data as :doc:`GeoJSON objects
1818
All fields have a :doc:`2dsphere index
1919
<manual:core/indexes/index-types/geospatial/2dsphere>` created on them.
2020

21-
The following :doc:`GIS QuerySet APIs <django:ref/contrib/gis/geoquerysets>` are supported:
22-
- :meth:`~django.contrib.gis.db.models.query.GeoQuerySet.contains`
23-
- :meth:`~django.contrib.gis.db.models.query.GeoQuerySet.intersects`
24-
- :meth:`~django.contrib.gis.db.models.query.GeoQuerySet.disjoint`
25-
- :meth:`~django.contrib.gis.db.models.query.GeoQuerySet.within`
26-
- :meth:`~django.contrib.gis.db.models.query.GeoQuerySet.distance_gt`
27-
- :meth:`~django.contrib.gis.db.models.query.GeoQuerySet.distance_gte`
28-
- :meth:`~django.contrib.gis.db.models.query.GeoQuerySet.distance_lt`
29-
- :meth:`~django.contrib.gis.db.models.query.GeoQuerySet.distance_lte`
30-
- :meth:`~django.contrib.gis.db.models.query.GeoQuerySet.dwithin`
21+
The following :ref:`spatial lookups <django:spatial-lookups>` are supported:
22+
23+
- :lookup:`contains <gis-contains>`
24+
- :lookup:`disjoint`
25+
- :lookup:`distance_gt`
26+
- :lookup:`distance_gte`
27+
- :lookup:`distance_lt`
28+
- :lookup:`distance_lte`
29+
- :lookup:`dwithin`
30+
- :lookup:`intersects`
31+
- :lookup:`within`
3132

3233
You can also use any of the :ref:`geospatial query operators
3334
<manual:geospatial-query-operators>` or the :ref:`geospatial aggregation
3435
pipeline stage <geospatial-aggregation>` in :meth:`.raw_aggregate` queries.
3536

37+
.. versionadded:: 6.0.1
38+
39+
Support for spatial lookups was added.
40+
3641
Configuration
3742
=============
3843

@@ -50,5 +55,8 @@ Limitations
5055
(:attr:`BaseSpatialField.srid
5156
<django.contrib.gis.db.models.BaseSpatialField.srid>`)
5257
besides `4326 (WGS84) <https://spatialreference.org/ref/epsg/4326/>`_.
53-
- QuerySet APIs do not support subqueries or expressions.
58+
- Spatial lookups don't support subqueries or expressions.
59+
- :ref:`GIS aggregate functions <gis-aggregation-functions>` and
60+
:doc:`geographic database functions <django:ref/contrib/gis/functions>`
61+
aren't supported.
5462
- :class:`~django.contrib.gis.db.models.RasterField` isn't supported.

docs/releases/6.0.x.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ Django MongoDB Backend 6.0.x
1010
New features
1111
------------
1212

13-
- ...
13+
- Support for some spatial lookups is added: ``contains``, ``disjoint``,
14+
``distance_gt``, ``distance_gte``, ``distance_lt``, ``distance_lte``,
15+
``dwithin``, ``intersects``, and ``within``.
1416

1517
Bug fixes
1618
---------

0 commit comments

Comments
 (0)