Skip to content

Commit 525d960

Browse files
committed
Document that embedded models don't have a primary key value
1 parent dbeb2de commit 525d960

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docs/source/ref/models/models.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,6 @@ One MongoDB-specific model is available in ``django_mongodb_backend.models``.
1414
any of the normal ``QuerySet`` methods (``all()``, ``filter()``,
1515
``delete()``, etc.) You also cannot call ``Model.save()`` and ``delete()``
1616
on them.
17+
18+
Embedded model instances won't have a value for their primary key unless
19+
one is explicitly set.

0 commit comments

Comments
 (0)