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
11
11
12
12
.. toctree::
13
13
14
+ Model Your Data </model-data>
14
15
Issues & Help </issues-and-help>
15
16
Compatibility </compatibility>
16
17
@@ -19,7 +20,6 @@ Django MongoDB Backend
19
20
Get Started </get-started>
20
21
Connection Configuration </connect>
21
22
Interact with Data </interact-data>
22
- Model Your Data </model-data>
23
23
Django Feature Limitations </feature-limitations>
24
24
API Documentation <{+api+}>
25
25
@@ -49,11 +49,11 @@ a Django database backend that uses PyMongo to connect to MongoDB.
49
49
.. Learn how to use {+django-odm+} to perform operations on MongoDB data
50
50
in the :ref:`django-interact-data` section.
51
51
52
- .. Model Your Data
53
- .. ---------------
52
+ Model Your Data
53
+ ---------------
54
54
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.
57
57
58
58
.. Django Feature Limitations
59
59
.. --------------------------
Original file line number Diff line number Diff line change @@ -59,14 +59,6 @@ that {+django-odm+} supports:
59
59
* - Field Type
60
60
- Description
61
61
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
-
70
62
* - ``BigIntegerField``
71
63
- | Stores ``IntegerField`` values up to 64 bits in size.
72
64
@@ -179,7 +171,7 @@ The following table describes supported BSON field types and their
179
171
with {+django-odm+}, see the :ref:`django-models-embedded` section in this guide.
180
172
181
173
* - ``ObjectId``
182
- - ``AutoField ``
174
+ - ``ObjectIdAutoField ``
183
175
- | Stores unique 12-byte identifiers that MongoDB uses as primary keys.
184
176
185
177
* - ``Binary``
@@ -228,6 +220,7 @@ define a string representation of your model. Use the following syntax to
228
220
define a model:
229
221
230
222
.. code-block:: python
223
+ :copyable: false
231
224
232
225
class <Model name>(models.Model):
233
226
<field name> = <data type>
@@ -245,6 +238,7 @@ the name of the module that stores your ``models.py`` file, as shown
245
238
in the following code:
246
239
247
240
.. code-block:: python
241
+ :copyable: false
248
242
249
243
INSTALLED_APPS = [
250
244
'<application module>',
You can’t perform that action at this time.
0 commit comments