Merge pull request #1996 from hrmon/patch-1

Fix indentation in LazyReferenceField ref doc
This commit is contained in:
Bastien Gérard 2019-02-16 20:31:19 +01:00 committed by GitHub
commit a657f29439
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2251,9 +2251,9 @@ class LazyReferenceField(BaseField):
:param reverse_delete_rule: Determines what to do when the referring :param reverse_delete_rule: Determines what to do when the referring
object is deleted object is deleted
:param passthrough: When trying to access unknown fields, the :param passthrough: When trying to access unknown fields, the
:class:`~mongoengine.base.datastructure.LazyReference` instance will :class:`~mongoengine.base.datastructure.LazyReference` instance will
automatically call `fetch()` and try to retrive the field on the fetched automatically call `fetch()` and try to retrive the field on the fetched
document. Note this only work getting field (not setting or deleting). document. Note this only work getting field (not setting or deleting).
""" """
# XXX ValidationError raised outside of the "validate" method. # XXX ValidationError raised outside of the "validate" method.
if ( if (