diff --git a/mongoengine/document.py b/mongoengine/document.py index 27792780..f8bf769d 100644 --- a/mongoengine/document.py +++ b/mongoengine/document.py @@ -375,7 +375,7 @@ class DynamicDocument(Document): :class:`~mongoengine.DynamicField` and data can be attributed to that field. - ..note:: + .. note:: There is one caveat on Dynamic Documents: fields cannot start with `_` """ diff --git a/mongoengine/fields.py b/mongoengine/fields.py index ba8ff2dd..43f58e58 100644 --- a/mongoengine/fields.py +++ b/mongoengine/fields.py @@ -451,7 +451,7 @@ class GenericEmbeddedDocumentField(BaseField): Only valid values are subclasses of :class:`~mongoengine.EmbeddedDocument`. - ..note :: You can use the choices param to limit the acceptable + .. note:: You can use the choices param to limit the acceptable EmbeddedDocument types """ @@ -768,10 +768,10 @@ class GenericReferenceField(BaseField): """A reference to *any* :class:`~mongoengine.document.Document` subclass that will be automatically dereferenced on access (lazily). - ..note :: Any documents used as a generic reference must be registered in the + .. note:: Any documents used as a generic reference must be registered in the document registry. Importing the model will automatically register it. - ..note :: You can use the choices param to limit the acceptable Document types + .. note:: You can use the choices param to limit the acceptable Document types .. versionadded:: 0.3 """