commit
4428842e77
@ -2414,7 +2414,7 @@ class LazyReferenceField(BaseField):
|
||||
object is deleted
|
||||
:param passthrough: When trying to access unknown fields, the
|
||||
: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 retrieve the field on the fetched
|
||||
document. Note this only work getting field (not setting or deleting).
|
||||
"""
|
||||
# XXX ValidationError raised outside of the "validate" method.
|
||||
|
@ -306,7 +306,7 @@ class TestField(MongoDBTestCase):
|
||||
)
|
||||
assert res == 1
|
||||
|
||||
# Retrive data from db and verify it.
|
||||
# Retrieve data from db and verify it.
|
||||
ret = HandleNoneFields.objects.all()[0]
|
||||
assert ret.str_fld is None
|
||||
assert ret.int_fld is None
|
||||
@ -340,7 +340,7 @@ class TestField(MongoDBTestCase):
|
||||
{"$unset": {"str_fld": 1, "int_fld": 1, "flt_fld": 1, "comp_dt_fld": 1}},
|
||||
)
|
||||
|
||||
# Retrive data from db and verify it.
|
||||
# Retrieve data from db and verify it.
|
||||
ret = HandleNoneFields.objects.first()
|
||||
assert ret.str_fld is None
|
||||
assert ret.int_fld is None
|
||||
|
Loading…
x
Reference in New Issue
Block a user