Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/MongoEngine/mongoengine
/ Link
Class
Link
tests/fields/test_fields.py:1593–1595 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1591
""
"Ensure that a GenericReferenceField properly dereferences items."
""
1592
1593
class
Link(Document):
1594
title = StringField()
1595
meta = {
"allow_inheritance"
: False}
1596
1597
class
Post(Document):
1598
title = StringField()
Callers
6
test_generic_reference
Method · 0.70
test_generic_reference_list
Method · 0.70
test_generic_reference_document_not_registered
Method · 0.70
test_generic_reference_choices
Method · 0.70
test_generic_reference_string_choices
Method · 0.70
test_generic_reference_list_choices
Method · 0.70
Calls
1
StringField
Class · 0.90
Tested by
6
test_generic_reference
Method · 0.56
test_generic_reference_list
Method · 0.56
test_generic_reference_document_not_registered
Method · 0.56
test_generic_reference_choices
Method · 0.56
test_generic_reference_string_choices
Method · 0.56
test_generic_reference_list_choices
Method · 0.56