Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/MongoEngine/mongoengine
/ Doc2
Class
Doc2
tests/fields/test_fields.py:1876–1878 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1874
name = StringField()
1875
1876
class
Doc2(Document):
1877
ref = GenericReferenceField()
1878
refs = ListField(GenericReferenceField())
1879
1880
Doc1.drop_collection()
1881
Doc2.drop_collection()
Callers
2
test_generic_reference_is_not_tracked_in_parent_doc
Method · 0.85
test_dynamic_fields_class
Method · 0.85
Calls
3
GenericReferenceField
Class · 0.90
ListField
Class · 0.90
StringField
Class · 0.90
Tested by
2
test_generic_reference_is_not_tracked_in_parent_doc
Method · 0.68
test_dynamic_fields_class
Method · 0.68