Skip to content

Commit 37c9928

Browse files
committed
Add "Supported model fields" section to model field reference
1 parent 8f735f0 commit 37c9928

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

docs/source/ref/models/fields.rst

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,29 @@
1+
=====================
12
Model 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

629
Some MongoDB-specific fields are available in ``django_mongodb_backend.fields``.

0 commit comments

Comments
 (0)