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 593abb7Copy full SHA for 593abb7
docs/ref/models/fields.rst
@@ -39,6 +39,17 @@ 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>`. Supporting them would require
51
+ using operators like ``$getField`` which prevents queries from using indexes.
52
53
MongoDB-specific model fields
54
=============================
55
0 commit comments