MCPcopy Index your code
hub / github.com/MongoEngine/mongoengine / FieldDoesNotExist

Class FieldDoesNotExist

mongoengine/errors.py:64–72  ·  view source on GitHub ↗

Raised when trying to set a field not declared in a :class:`~mongoengine.Document` or an :class:`~mongoengine.EmbeddedDocument`. To avoid this behavior on data loading, you should set the :attr:`strict` to ``False`` in the :attr:`meta` dictionary.

Source from the content-addressed store, hash-verified

62
63
64class FieldDoesNotExist(MongoEngineException):
65 """Raised when trying to set a field
66 not declared in a :class:`~mongoengine.Document`
67 or an :class:`~mongoengine.EmbeddedDocument`.
68
69 To avoid this behavior on data loading,
70 you should set the :attr:`strict` to ``False``
71 in the :attr:`meta` dictionary.
72 """
73
74
75class ValidationError(AssertionError):

Callers 1

__init__Method · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected