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

Method __init__

mongoengine/fields.py:980–986  ·  view source on GitHub ↗

:param document_type: The type of :class:`~mongoengine.EmbeddedDocument` the list will hold. :param kwargs: Keyword arguments passed into the parent :class:`~mongoengine.ListField`

(self, document_type, **kwargs)

Source from the content-addressed store, hash-verified

978 """
979
980 def __init__(self, document_type, **kwargs):
981 """
982 :param document_type: The type of
983 :class:`~mongoengine.EmbeddedDocument` the list will hold.
984 :param kwargs: Keyword arguments passed into the parent :class:`~mongoengine.ListField`
985 """
986 super().__init__(field=EmbeddedDocumentField(document_type), **kwargs)
987
988
989class SortedListField(ListField):

Callers

nothing calls this directly

Calls 2

__init__Method · 0.45

Tested by

no test coverage detected