We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b3e98e1 commit 03b7c93Copy full SHA for 03b7c93
docs/ref/models/fields.rst
@@ -39,6 +39,18 @@ A few notes about some of the other fields:
39
- Similarly, all :class:`~django.db.models.DurationField` values are stored as
40
:class:`bson.int64.Int64`.
41
42
+Model field options
43
+===================
44
+
45
+Some notes about model field options:
46
47
+- Dollar signs and periods (``$`` and ``.``) are not supported in
48
+ :attr:`Field.db_column <django.db.models.Field.db_column>` because these field
49
+ names are :doc:`discouraged by MongoDB
50
+ <manual:core/dot-dollar-considerations>`. Querying fields with these
51
+ characters requires the ``$getField`` operator, which prevents queries from
52
+ using indexes.
53
54
MongoDB-specific model fields
55
=============================
56
0 commit comments