Skip to content

Commit

Permalink
Merge pull request #992 from touilleMan/master
Browse files Browse the repository at this point in the history
Add primary_key notice in defining-documents doc according to issue #985
  • Loading branch information
MRigal committed May 6, 2015
2 parents 7f442f7 + 5f33d29 commit c642eee
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/guide/defining-documents.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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 through 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.
Expand Down

0 comments on commit c642eee

Please sign in to comment.