@@ -38,7 +38,8 @@ Supported Field Types
38
38
---------------------
39
39
40
40
This section describes {+django-odm+}'s support for
41
- the following field types:
41
+ the following field types, which you can include in
42
+ your models:
42
43
43
44
- :ref:`django-models-django-fields`
44
45
- :ref:`django-models-mongodb-fields`
@@ -61,7 +62,7 @@ that {+django-odm+} supports:
61
62
* - ``AutoField``
62
63
- | Stores ``IntegerField`` values that automatically increment according to
63
64
available ID values. If you don't explicitly specify this field,
64
- MongoDB automatically assigns an ``ObjectId`` primary key value.
65
+ {+django-odm+} automatically assigns an ``ObjectId`` primary key value.
65
66
66
67
* - ``BigAutoField``
67
68
- | Stores ``AutoField`` values up to 64 bits in size.
@@ -108,7 +109,7 @@ that {+django-odm+} supports:
108
109
- | Stores float values.
109
110
110
111
* - ``GenericIPAddressField``
111
- - | Stores an Pv4 or IPv6 address in string format.
112
+ - | Stores an IPv4 or IPv6 address in string format.
112
113
113
114
* - ``IntegerField``
114
115
- | Stores integer values.
@@ -147,7 +148,7 @@ MongoDB BSON Fields
147
148
~~~~~~~~~~~~~~~~~~~
148
149
149
150
MongoDB organizes and stores documents in a binary representation
150
- called `` BSON`` that allows for flexible data processing.
151
+ called BSON that allows for flexible data processing.
151
152
152
153
.. tip::
153
154
@@ -163,7 +164,7 @@ The following table describes supported BSON field types and their
163
164
:widths: 20 20 60
164
165
165
166
* - BSON Field Type
166
- - Django Field Type
167
+ - {+django-odm+} Field Type
167
168
- BSON Description
168
169
169
170
* - ``Array``
@@ -262,7 +263,7 @@ models or use existing collections to store model data:
262
263
.. _django-models-define-ex:
263
264
264
265
Example
265
- ```````
266
+ ~~~~~~~
266
267
267
268
This sample ``models.py`` file defines a ``Movie`` model
268
269
class that includes the following information:
@@ -330,7 +331,7 @@ stores this data in BSON, or Binary JSON, format.
330
331
331
332
- Some queries that use ``Q`` objects might not return the expected results.
332
333
333
- - When querying for field that have a ``None`` value, {+django-odm+} incorrectly
334
+ - When querying for fields that have a ``None`` value, {+django-odm+} incorrectly
334
335
returns documents in which the field doesn't exist.
335
336
336
337
Example
0 commit comments