Update defining-documents.rst
Add primary_key notice according to issue #985
This commit is contained in:
parent
7f442f7485
commit
fc39fd7519
@ -146,6 +146,8 @@ arguments can be set on all fields:
|
||||
When True, use this field as a primary key for the collection. `DictField`
|
||||
and `EmbeddedDocuments` both support being the primary key for a document.
|
||||
|
||||
.. note:: If set, this field is also accessible throught the `pk` field.
|
||||
|
||||
:attr:`choices` (Default: None)
|
||||
An iterable (e.g. a list or tuple) of choices to which the value of this
|
||||
field should be limited.
|
||||
|
Loading…
x
Reference in New Issue
Block a user