Merge pull request #1383 from BenCoDev/patch-1

Dictionnary Field recommended use
This commit is contained in:
Omer Katz 2016-11-27 18:39:04 +02:00 committed by GitHub
commit 0a20e04c10

View File

@ -214,9 +214,9 @@ document class as the first argument::
Dictionary Fields Dictionary Fields
----------------- -----------------
Often, an embedded document may be used instead of a dictionary -- generally Often, an embedded document may be used instead of a dictionary generally
this is recommended as dictionaries don't support validation or custom field embedded documents are recommended as dictionaries dont support validation
types. However, sometimes you will not know the structure of what you want to or custom field types. However, sometimes you will not know the structure of what you want to
store; in this situation a :class:`~mongoengine.fields.DictField` is appropriate:: store; in this situation a :class:`~mongoengine.fields.DictField` is appropriate::
class SurveyResponse(Document): class SurveyResponse(Document):