Merge pull request #992 from touilleMan/master

Add primary_key notice in defining-documents doc according to issue #985
This commit is contained in:
Matthieu Rigal 2015-05-06 23:13:20 +02:00
commit c642eee0d2

View File

@ -146,6 +146,8 @@ arguments can be set on all fields:
When True, use this field as a primary key for the collection. `DictField` When True, use this field as a primary key for the collection. `DictField`
and `EmbeddedDocuments` both support being the primary key for a document. and `EmbeddedDocuments` both support being the primary key for a document.
.. note:: If set, this field is also accessible through the `pk` field.
:attr:`choices` (Default: None) :attr:`choices` (Default: None)
An iterable (e.g. a list or tuple) of choices to which the value of this An iterable (e.g. a list or tuple) of choices to which the value of this
field should be limited. field should be limited.