From bb1b9bc1d36151927d77227b2b70d64940eda868 Mon Sep 17 00:00:00 2001 From: Ross Lawley Date: Tue, 21 Aug 2012 17:49:12 +0100 Subject: [PATCH] Fixing api docs --- mongoengine/fields.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/mongoengine/fields.py b/mongoengine/fields.py index ef20d892..4023a774 100644 --- a/mongoengine/fields.py +++ b/mongoengine/fields.py @@ -473,8 +473,9 @@ class GenericEmbeddedDocumentField(BaseField): Only valid values are subclasses of :class:`~mongoengine.EmbeddedDocument`. - .. note:: You can use the choices param to limit the acceptable - EmbeddedDocument types + .. note :: + You can use the choices param to limit the acceptable + EmbeddedDocument types """ def prepare_query_value(self, op, value): @@ -789,10 +790,12 @@ 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 - document registry. Importing the model will automatically register it. + .. 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 + * You can use the choices param to limit the acceptable Document types .. versionadded:: 0.3 """