From fc39fd75193d2ba11811409217e0e1b2d25447a8 Mon Sep 17 00:00:00 2001 From: Emmanuel Leblond Date: Wed, 6 May 2015 18:30:49 +0200 Subject: [PATCH 1/2] Update defining-documents.rst Add primary_key notice according to issue #985 --- docs/guide/defining-documents.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/guide/defining-documents.rst b/docs/guide/defining-documents.rst index 6f249535..274f0f43 100644 --- a/docs/guide/defining-documents.rst +++ b/docs/guide/defining-documents.rst @@ -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. From 5f33d298d70f283ffcec3a0320efcaac1b6858ec Mon Sep 17 00:00:00 2001 From: Emmanuel Leblond Date: Wed, 6 May 2015 21:32:36 +0200 Subject: [PATCH 2/2] Fix typo in guide/defining-documents.rst --- docs/guide/defining-documents.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/guide/defining-documents.rst b/docs/guide/defining-documents.rst index 274f0f43..56370c14 100644 --- a/docs/guide/defining-documents.rst +++ b/docs/guide/defining-documents.rst @@ -146,7 +146,7 @@ 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. + .. 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