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

Method clean

mongoengine/base/document.py:309–318  ·  view source on GitHub ↗

Hook for doing document level data cleaning (usually validation or assignment) before validation is run. Any ValidationError raised by this method will not be associated with a particular field; it will have a special-case association with the field defined

(self)

Source from the content-addressed store, hash-verified

307 return not self.__eq__(other)
308
309 def clean(self):
310 """
311 Hook for doing document level data cleaning (usually validation or assignment)
312 before validation is run.
313
314 Any ValidationError raised by this method will not be associated with
315 a particular field; it will have a special-case association with the
316 field defined by NON_FIELD_ERRORS.
317 """
318 pass
319
320 def get_text_score(self):
321 """

Callers 1

validateMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected