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

Method __init__

mongoengine/fields.py:1093–1097  ·  view source on GitHub ↗
(self, field=None, *args, **kwargs)

Source from the content-addressed store, hash-verified

1091 """
1092
1093 def __init__(self, field=None, *args, **kwargs):
1094 # XXX ValidationError raised outside the "validate" method.
1095 if not isinstance(field, BaseField):
1096 self.error("Argument to MapField constructor must be a valid field")
1097 super().__init__(field=field, *args, **kwargs)
1098
1099
1100class ReferenceField(BaseField):

Callers

nothing calls this directly

Calls 2

errorMethod · 0.80
__init__Method · 0.45

Tested by

no test coverage detected