Skip to content

Commit 1e7fe90

Browse files
committed
edits
1 parent d775baf commit 1e7fe90

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

source/includes/interact-data/specify-a-query.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,13 @@ def __str__(self):
8282
# end-kt
8383

8484
# start-primary-key-pk
85+
from bson import ObjectId
86+
8587
Movie.objects.get(pk=ObjectId("573a1394f29313caabce0d37"))
8688
# end-primary-key-pk
8789

8890
# start-primary-key-id
91+
from bson import ObjectId
92+
8993
Movie.objects.get(id=ObjectId("573a1394f29313caabce0d37"))
9094
# end-primary-key-id

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,9 +230,9 @@ exclude documents released before January 1, 1980 from the results:
230230

231231
.. tip::
232232

233-
The preceding example uses the ``lt`` comparison operator
233+
The preceding example uses the ``lt`` field lookup
234234
to query the collection. To learn more about comparison
235-
operators, see the :ref:`django-query-comparison` section
235+
lookups, see the :ref:`django-query-comparison` section
236236
in this guide.
237237

238238
Customize Your Query Filter
@@ -320,6 +320,7 @@ includes the text ``"coming-of-age"``:
320320
:language: python
321321

322322
.. output::
323+
:language: none
323324
:visible: false
324325

325326
<QuerySet [<Movie: Murmur of the Heart>, <Movie: Desert Bloom>,

0 commit comments

Comments
 (0)