Skip to content

Commit ae2aa0e

Browse files
committed
Document that embedded models don't have a primary key value
1 parent 60b98ef commit ae2aa0e

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
@@ -13,3 +13,6 @@ must subclass.
1313
Since these models are not stored in their own collection, they do not have
1414
any of the normal ``QuerySet`` methods (``all()``, ``filter()``, ``delete()``,
1515
etc.) You also cannot call ``Model.save()`` and ``delete()`` on them.
16+
17+
Embedded model instances won't have a value for their primary key unless one is
18+
explicitly set.

0 commit comments

Comments
 (0)