File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change 1+ =====================
12Model field reference
23=====================
34
5+ Supported model fields
6+ ======================
7+
8+ All of Django's :doc: `model fields <django:ref/models/fields >` are
9+ supported, except:
10+
11+ - :class: `~django.db.models.AutoField ` (including
12+ :class: `~django.db.models.BigAutoField ` and
13+ :class: `~django.db.models.SmallAutoField `)
14+ - :class: `~django.db.models.CompositePrimaryKey `
15+ - :class: `~django.db.models.GeneratedField `
16+
17+ A few notes about some of the other fields:
18+
19+ - :class: `~django.db.models.DateTimeField ` is limited to millisecond precision
20+ (rather than microsecond like most other databases), and correspondingly,
21+ :class: `~django.db.models.DurationField ` stores milliseconds rather than
22+ microseconds.
23+
24+ MongoDB-specific model fields
25+ =============================
26+
427.. module :: django_mongodb_backend.fields
528
629Some MongoDB-specific fields are available in ``django_mongodb_backend.fields ``.
You can’t perform that action at this time.
0 commit comments