Skip to content

Commit 9636386

Browse files
committed
method links
1 parent 5ba56dc commit 9636386

File tree

2 files changed

+27
-3
lines changed

2 files changed

+27
-3
lines changed

snooty.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ intersphinx = [
1818
"https://www.mongodb.com/docs/manual/objects.inv",
1919
"https://www.mongodb.com/docs/drivers/objects.inv",
2020
"https://www.mongodb.com/docs/atlas/objects.inv",
21+
"http://docs.djangoproject.com/en/5.0/_objects/",
2122
]
2223
sharedinclude_root = "https://raw.githubusercontent.com/10gen/docs-shared/main/"
2324

source/interact-data/crud.txt

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,9 @@ code:
137137

138138
.. tip::
139139

140-
To learn more about the
140+
To learn more about the ``create()`` method, see
141+
:meth:`~django.db.models.query.QuerySet.create()` in the {+framework+}
142+
documentation.
141143

142144
.. _django-crud-read:
143145

@@ -174,6 +176,12 @@ returns ``Movie`` objects that represent movies released on January 1, 2000:
174176
<Movie: First Person Plural>, <Movie: Just, Melvin: Just Evil>, <Movie: Sound and Fury>,
175177
<Movie: Peppermint Candy>]>
176178

179+
.. tip::
180+
181+
To learn more about the ``filter()`` method, see
182+
:meth:`~django.db.models.query.QuerySet.filter()` in the {+framework+}
183+
documentation.
184+
177185
Return One Document Example
178186
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
179187

@@ -206,8 +214,11 @@ retrieves a document in which the ``title`` value is ``"Boyhood"``:
206214

207215
Movie.objects.filter(title="Boyhood").first()
208216

209-
.. TODO: To learn more about the ``first()`` method, see
210-
:ref:`` in the Specify a Query guide.
217+
.. tip::
218+
219+
To learn more about the ``get()`` method, see
220+
:meth:`~django.db.models.query.QuerySet.get()` in the {+framework+}
221+
documentation.
211222

212223
.. _django-crud-modify:
213224

@@ -244,6 +255,12 @@ a document that has a ``title`` value of ``"High Fidelity"`` and adds a
244255
// Outputs the number of modified documents
245256
1
246257

258+
.. tip::
259+
260+
To learn more about the ``update()`` method, see
261+
:meth:`~django.db.models.query.QuerySet.update()` in the {+framework+}
262+
documentation.
263+
247264
.. _django-crud-delete:
248265

249266
Delete Documents
@@ -276,6 +293,12 @@ and deletes documents that have a ``runtime`` value of ``5``:
276293
// Outputs the number of deleted documents and objects
277294
(16, {'sample_mflix.Movie': 16})
278295

296+
.. tip::
297+
298+
To learn more about the ``delete()`` method, see
299+
:meth:`~django.db.models.query.QuerySet.delete()` in the {+framework+}
300+
documentation.
301+
279302

280303
Additional Information
281304
----------------------

0 commit comments

Comments
 (0)