File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -147,8 +147,11 @@ function accepts the following arguments:
147
147
- ``uri``: Your MongoDB connection URI.
148
148
- ``conn_max_age``: Configures persistent database connections.
149
149
This argument is optional. To learn more, see
150
- `Persistent connections <{+django-docs+}/ref/databases/# persistent-database-connections>`__
150
+ :py:mod:` persistent-database-connections`
151
151
in the {+framework+} documentation.
152
+ :py:module:`persistent-database-connections`
153
+ :py:mod:`~persistent-database-connections`
154
+ :py:module:`~persistent-database-connections`
152
155
- ``test``: Provides a dictionary of settings for test
153
156
databases. This argument is optional. To learn more, see
154
157
`the TEST setting <{+django-docs+}/ref/settings/#test>`__
Original file line number Diff line number Diff line change @@ -40,13 +40,9 @@ to the database in pipeline stages.
40
40
{+framework+} provides a ``QuerySet.aggregate()`` method, which differs from the
41
41
``QuerySet.raw_aggregate()`` method. You can use ``aggregate()`` to retrieve
42
42
values by aggregating a collection of model objects. To learn more about
43
- the ``aggregate()`` method, see :py:mod :`~topics/db/aggregation `
43
+ the ``aggregate()`` method, see :py:meth :`~django.db.models.query.QuerySet.aggregate `
44
44
in the {+framework+} documentation.
45
- :py:module:`~topics/db/aggregation`
46
- :py:module:`topics/db/aggregation`
47
- :py:mod:`topics/db/aggregation`
48
- :py:meth:`~django.db.models.query.QuerySet.aggregate`
49
-
45
+
50
46
You can run database queries by calling ``QuerySet`` methods on your model's
51
47
``Manager``. The ``Manager`` class handles database operations and allows you
52
48
to interact with your MongoDB data by referencing {+framework+} models. By default,
Original file line number Diff line number Diff line change @@ -741,7 +741,8 @@ provided ``KT()`` expressions.
741
741
see the following resources in the {+framework+} documentation:
742
742
743
743
- `KT() expressions <{+django-docs+}/topics/db/queries/#module-django.db.models.fields.json>`__
744
- - `annotate() <{+django-docs+}/ref/models/querysets/#django.db.models.query.QuerySet.annotate>`__
744
+ :py:mod:`~django.db.models.fields.json`
745
+ - :py:meth:`~django.db.models.query.QuerySet.annotate`
745
746
746
747
The following example uses ``annotate()`` and ``KT()`` to create a
747
748
new ``score`` key, which stores ``imdb.rating`` nested field values.
You can’t perform that action at this time.
0 commit comments