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

Class Asset

tests/test_dereference.py:1041–1047  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1039
1040 def test_multidirectional_lists(self):
1041 class Asset(Document):
1042 name = StringField(max_length=250, required=True)
1043 path = StringField()
1044 title = StringField()
1045 parent = GenericReferenceField(default=None)
1046 parents = ListField(GenericReferenceField())
1047 children = ListField(GenericReferenceField())
1048
1049 Asset.drop_collection()
1050

Callers 1

Calls 3

StringFieldClass · 0.85
ListFieldClass · 0.85

Tested by 1