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

Class Person

tests/document/test_instance.py:56–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54 years = IntField()
55
56 class Person(Document):
57 name = StringField()
58 age = IntField()
59 job = EmbeddedDocumentField(Job)
60
61 non_field = True
62
63 meta = {"allow_inheritance": True}
64
65 self.Person = Person
66 self.Job = Job

Calls 7

StringFieldClass · 0.85
IntFieldClass · 0.85
ReferenceFieldClass · 0.85
DateTimeFieldClass · 0.85
FloatFieldClass · 0.85