@@ -24,30 +24,33 @@ In this guide, you can learn how to use {+django-odm+} to run
24
24
create, read, update, and delete (CRUD) operations on your MongoDB
25
25
collection.
26
26
27
+ You can also use the {+framework+} admin site to edit your models
28
+ and their corresponding collections on a web interface. For
29
+ more information, see the `Django Admin Site <https://docs.djangoproject.com/en/5.1/ref/contrib/admin/>`__
30
+ entry in the {+framework+} documentation.
31
+
32
+ Query API
33
+ ~~~~~~~~~
34
+
27
35
You can use methods provided by the {+framework+} ``QuerySet`` API to run
28
36
CRUD operations. To run these operations, you can call ``QuerySet`` methods
29
37
on your model's manager. The ``Manager`` class handles database
30
38
operations and allows you to interact with your MongoDB data by referencing
31
39
Django models. By default, {+framework+} adds a ``Manager`` named ``objects``
32
40
to every model class.
33
41
34
- This guide shows how to use the following ``QuerySet`` methods:
35
-
36
- - :ref:`create() <django-crud-insert>`: Inserts documents into the collection
37
- - :ref:`filter() and get() <django-crud-read>`: Retrieves one or multiple collection documents
38
- - :ref:`update() <django-crud-modify>`: Modifies collection documents
39
- - :ref:`delete() <django-crud-delete>`: Deletes collection documents
40
-
41
42
.. tip::
42
43
43
44
To learn more about {+framework+}'s ``QuerySet`` API, see the
44
45
`QuerySet API reference <https://docs.djangoproject.com/en/5.1/ref/models/querysets/>`__
45
46
in the {+framework+} documentation.
46
47
47
- You can also use the {+framework+} admin site to edit your models
48
- and their corresponding collections on a web interface. For
49
- more information, see the `Django Admin Site <https://docs.djangoproject.com/en/5.1/ref/contrib/admin/>`__
50
- entry in the {+framework+} documentation.
48
+ This guide shows how to use the following ``QuerySet`` methods:
49
+
50
+ - :ref:`create() <django-crud-insert>`: Inserts documents into the collection
51
+ - :ref:`filter() and get() <django-crud-read>`: Retrieves one or multiple collection documents
52
+ - :ref:`update() <django-crud-modify>`: Modifies collection documents
53
+ - :ref:`delete() <django-crud-delete>`: Deletes collection documents
51
54
52
55
Sample Data
53
56
~~~~~~~~~~~
0 commit comments