File tree Expand file tree Collapse file tree 2 files changed +8
-14
lines changed
Expand file tree Collapse file tree 2 files changed +8
-14
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ Django MongoDB Backend
1111
1212.. toctree::
1313
14+ Model Your Data </model-data>
1415 Issues & Help </issues-and-help>
1516 Compatibility </compatibility>
1617
@@ -19,7 +20,6 @@ Django MongoDB Backend
1920 Get Started </get-started>
2021 Connection Configuration </connect>
2122 Interact with Data </interact-data>
22- Model Your Data </model-data>
2323 Django Feature Limitations </feature-limitations>
2424 API Documentation <{+api+}>
2525
@@ -49,11 +49,11 @@ a Django database backend that uses PyMongo to connect to MongoDB.
4949.. Learn how to use {+django-odm+} to perform operations on MongoDB data
5050 in the :ref:`django-interact-data` section.
5151
52- .. Model Your Data
53- .. ---------------
52+ Model Your Data
53+ ---------------
5454
55- .. Learn how to create Django models that represent MongoDB collections
56- in the :ref:`django-model-data` section.
55+ Learn how to create Django models that represent MongoDB collections
56+ in the :ref:`django-model-data` section.
5757
5858.. Django Feature Limitations
5959.. --------------------------
Original file line number Diff line number Diff line change @@ -59,14 +59,6 @@ that {+django-odm+} supports:
5959 * - Field Type
6060 - Description
6161
62- * - ``AutoField``
63- - | Stores ``IntegerField`` values that automatically increment according to
64- available ID values. If you don't explicitly specify this field,
65- {+django-odm+} automatically assigns an ``ObjectId`` primary key value.
66-
67- * - ``BigAutoField``
68- - | Stores ``AutoField`` values up to 64 bits in size.
69-
7062 * - ``BigIntegerField``
7163 - | Stores ``IntegerField`` values up to 64 bits in size.
7264
@@ -179,7 +171,7 @@ The following table describes supported BSON field types and their
179171 with {+django-odm+}, see the :ref:`django-models-embedded` section in this guide.
180172
181173 * - ``ObjectId``
182- - ``AutoField ``
174+ - ``ObjectIdAutoField ``
183175 - | Stores unique 12-byte identifiers that MongoDB uses as primary keys.
184176
185177 * - ``Binary``
@@ -228,6 +220,7 @@ define a string representation of your model. Use the following syntax to
228220define a model:
229221
230222.. code-block:: python
223+ :copyable: false
231224
232225 class <Model name>(models.Model):
233226 <field name> = <data type>
@@ -245,6 +238,7 @@ the name of the module that stores your ``models.py`` file, as shown
245238in the following code:
246239
247240.. code-block:: python
241+ :copyable: false
248242
249243 INSTALLED_APPS = [
250244 '<application module>',
You can’t perform that action at this time.
0 commit comments