Skip to content

Commit 2651304

Browse files
committed
links
1 parent 394dcd3 commit 2651304

File tree

3 files changed

+12
-19
lines changed

3 files changed

+12
-19
lines changed

source/interact-data/specify-a-query.txt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,6 @@ in the following ways:
400400
by commas. To view an example, see `Retrieving objects
401401
<{+django-docs+}/topics/db/queries/#retrieving-objects>`__ in the
402402
{+framework+} documentation.
403-
:std:label:`chaining-filters`
404403

405404
- Chain query methods together. To learn more, see `Chaining filters
406405
<{+django-docs+}/topics/db/queries/#chaining-filters>`__ in the {+framework+}
@@ -741,9 +740,7 @@ provided ``KT()`` expressions.
741740
To learn more about ``KT()`` expressions and the ``annotate()`` method,
742741
see the following resources in the {+framework+} documentation:
743742

744-
- `KT() expressions <{+django-docs+}/topics/db/queries/#module-django.db.models.fields.json>`__
745-
:py:module:`~django.db.models.fields.json`
746-
:class:`KT() <django.db.models.fields.json.KT>`
743+
- :py:class:`~django.db.models.fields.json.KT`
747744
- :py:meth:`~django.db.models.query.QuerySet.annotate`
748745

749746
The following example uses ``annotate()`` and ``KT()`` to create a

source/model-data/indexes.txt

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,8 @@ MongoDB collection that the model represents.
3636

3737
.. tip::
3838

39-
To learn more about the ``Index`` class, see `Model index reference
40-
<{+django-docs+}/ref/models/indexes/>`__ in the {+framework+}
41-
documentation.
39+
To learn more about the ``Index`` class, see :py:class:`~django.db.models.Index`
40+
in the {+framework+} documentation.
4241

4342
Sample Data
4443
~~~~~~~~~~~
@@ -221,8 +220,7 @@ argument to ``models.Index()``.
221220

222221
.. tip::
223222

224-
To learn more about ``Q`` objects, see `Complex lookups with Q objects
225-
<{+django-docs+}/topics/db/queries/#complex-lookups-with-q-objects>`__
223+
To learn more about ``Q`` objects, see :py:class:`~django.db.models.Q`
226224
in the {+framework+} documentation.
227225

228226
The following example updates the ``Recipe`` model's ``Meta`` class to create
@@ -284,6 +282,7 @@ creates a unique compound index on these fields:
284282
creates an index on the specified fields. To learn more about the ``Meta``
285283
class's ``constraint`` option, see `Constraints <{+django-docs+}/ref/models/constraints/>`__
286284
in the {+framework+} documentation.
285+
:py:attr:`~django.db.models.Options.constraints` or :py:attribute:`~django.db.models.Options.constraints`
287286

288287
Additional Information
289288
----------------------
@@ -299,5 +298,5 @@ see the following {+mdb-server+} manual resources:
299298
- :manual:`Unique Indexes </core/index-unique/>`
300299

301300
To learn more about creating indexes on {+framework+} models, see
302-
`Model index reference <{+django-docs+}/ref/models/indexes/>`__ in the {+framework+}
301+
:py:class:`~django.db.models.Index` in the {+framework+}
303302
documentation.

source/model-data/models.txt

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,8 @@ documents by using model objects.
2828

2929
.. tip::
3030

31-
To learn more about {+framework+} models, see `Models
32-
<{+django-docs+}/topics/db/models/>`__ in the {+framework+}
33-
documentation.
31+
To learn more about {+framework+} models, see :py:class:`~django.db.models.Model`
32+
in the {+framework+} documentation.
3433

3534
.. _django-models-fields:
3635

@@ -87,8 +86,7 @@ that {+django-odm+} supports:
8786
Python ``timedelta`` instances.
8887

8988
* - ``EmailField``
90-
- | Stores ``CharField`` values and uses an `EmailValidator
91-
<{+django-docs+}/ref/validators/#django.core.validators.EmailValidator>`__
89+
- | Stores ``CharField`` values and uses an :py:class:`~django.core.validators.EmailValidator`
9290
to verify that the value is an email address.
9391

9492
* - ``FileField``
@@ -235,7 +233,7 @@ define a model:
235233
.. tip::
236234

237235
To learn more about the metadata options you can specify
238-
in the ``Meta`` class, see `Model Meta options <{+django-docs+}/ref/models/options/>`__
236+
in the ``Meta`` class, see :py:class:`~django.db.models.options.Options`
239237
in the {+framework+} documentation.
240238

241239
To use your models, you must add them to your project's
@@ -455,6 +453,5 @@ Additional Information
455453
To learn how to use your models to run database operations,
456454
see the :ref:`django-interact-data` guides.
457455

458-
To learn more about {+framework+} field types, see `Model index reference
459-
<{+django-docs+}/ref/models/fields/>`__ in the {+framework+}
460-
documentation.
456+
To learn more about {+framework+} field types, see :py:class:`~django.db.models.Field`
457+
in the {+framework+} documentation.

0 commit comments

Comments
 (0)