Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/MongoEngine/mongoengine
/ validate
Method
validate
mongoengine/fields.py:514–516 ·
view source on GitHub ↗
(self, value)
Source
from the content-addressed store, hash-verified
512
return
value
513
514
def
validate(self, value):
515
if
not isinstance(value, bool):
516
self.error(
"BooleanField only accepts boolean values"
)
517
518
519
class
DateTimeField(BaseField):
Callers
nothing calls this directly
Calls
1
error
Method · 0.80
Tested by
no test coverage detected