Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions docs/ref/models/fields.rst
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,18 @@ A few notes about some of the other fields:
- Similarly, all :class:`~django.db.models.DurationField` values are stored as
:class:`bson.int64.Int64`.

Model field options
===================

Some notes about model field options:

- Dollar signs and periods (``$`` and ``.``) are not supported in
:attr:`Field.db_column <django.db.models.Field.db_column>` because these field
names are :doc:`discouraged by MongoDB
<manual:core/dot-dollar-considerations>`. Querying fields with these
characters requires the ``$getField`` operator, which prevents queries from
using indexes.

MongoDB-specific model fields
=============================

Expand Down
Loading