Skip to content

Commit df740e8

Browse files
committed
doesn't work, revert
1 parent 8999776 commit df740e8

File tree

2 files changed

+16
-19
lines changed

2 files changed

+16
-19
lines changed

snooty.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ 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/",
2221
]
2322
sharedinclude_root = "https://raw.githubusercontent.com/10gen/docs-shared/main/"
2423

@@ -27,6 +26,7 @@ driver-short = "PyMongo"
2726
driver-long = "PyMongo, the MongoDB synchronous Python driver,"
2827
driver-async = "PyMongo Async"
2928
django-odm = "Django MongoDB Backend"
29+
django-docs = "https://docs.djangoproject.com/en/5.1/"
3030
framework = "Django"
3131
language = "Python"
3232
mdb-server = "MongoDB Server"

source/interact-data/crud.txt

Lines changed: 15 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,6 @@ The ``Movie`` model class includes an inner ``Meta`` class and a ``__str__()`` m
8080
To learn about these model features, see :ref:`django-models-define` in the
8181
Create Models guide.
8282

83-
Test: :djangoclass:`~django.db.models.IntegerField`
84-
8583
Run Code Examples
8684
`````````````````
8785

@@ -139,9 +137,9 @@ code:
139137

140138
.. tip::
141139

142-
To learn more about the ``create()`` method, see
143-
:django:meth:`~django.db.models.query.QuerySet.create()` in the {+framework+}
144-
documentation.
140+
To learn more about the ``create()`` method, see `create()
141+
<{+django-docs+}/ref/models/querysets/#create>`__ in the {+framework+}
142+
documentation.
145143

146144
.. _django-crud-read:
147145

@@ -180,9 +178,9 @@ returns ``Movie`` objects that represent movies released on January 1, 2000:
180178

181179
.. tip::
182180

183-
To learn more about the ``filter()`` method, see
184-
:meth:`~django.db.models.query.QuerySet.filter()` in the {+framework+}
185-
documentation.
181+
To learn more about the ``filter()`` method, see `filter()
182+
<{+django-docs+}/ref/models/querysets/#filter>`__ in the {+framework+}
183+
documentation.
186184

187185
Return One Document Example
188186
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -218,9 +216,9 @@ retrieves a document in which the ``title`` value is ``"Boyhood"``:
218216

219217
.. tip::
220218

221-
To learn more about the ``get()`` method, see
222-
:meth:`~django.db.models.query.QuerySet.get()` in the {+framework+}
223-
documentation.
219+
To learn more about the ``get()`` method, see `get()
220+
<{+django-docs+}/ref/models/querysets/#get>`__ in the {+framework+}
221+
documentation.
224222

225223
.. _django-crud-modify:
226224

@@ -259,9 +257,9 @@ a document that has a ``title`` value of ``"High Fidelity"`` and adds a
259257

260258
.. tip::
261259

262-
To learn more about the ``update()`` method, see
263-
:meth:`~django.db.models.query.QuerySet.update()` in the {+framework+}
264-
documentation.
260+
To learn more about the ``update()`` method, see `update()
261+
<{+django-docs+}/ref/models/querysets/#update>`__ in the {+framework+}
262+
documentation.
265263

266264
.. _django-crud-delete:
267265

@@ -297,10 +295,9 @@ and deletes documents that have a ``runtime`` value of ``5``:
297295

298296
.. tip::
299297

300-
To learn more about the ``delete()`` method, see
301-
:meth:`~django.db.models.query.QuerySet.delete()` in the {+framework+}
302-
documentation.
303-
298+
To learn more about the ``delete()`` method, see `delete()
299+
<{+django-docs+}/ref/models/querysets/#delete>`__ in the {+framework+}
300+
documentation.
304301

305302
Additional Information
306303
----------------------

0 commit comments

Comments
 (0)