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

Class EmbedData

tests/document/test_inheritance.py:29–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27 # Ensures _cls is properly set during construction
28 # and when object gets reloaded (prevent regression of #1950)
29 class EmbedData(EmbeddedDocument):
30 data = StringField()
31 meta = {"allow_inheritance": True}
32
33 class DataDoc(Document):
34 name = StringField()

Callers 1

test_constructor_clsMethod · 0.85

Calls 1

StringFieldClass · 0.90

Tested by 1

test_constructor_clsMethod · 0.68