Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/MongoEngine/mongoengine
/ User
Class
User
tests/test_dereference.py:21–22 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
19
""
"Ensure that DBRef items in ListFields are dereferenced."
""
20
21
class
User(Document):
22
name = StringField()
23
24
class
Group(Document):
25
members = ListField(ReferenceField(User))
Callers
11
test_list_item_dereference
Method · 0.70
test_list_item_dereference_dref_false
Method · 0.70
test_list_item_dereference_orphan_dbref
Method · 0.70
test_list_item_dereference_dref_false_stores_as_type
Method · 0.70
test_handle_old_style_references
Method · 0.70
test_migrate_references
Method · 0.70
test_map_field_reference
Method · 0.70
test_document_reload_reference_integrity
Method · 0.70
test_list_item_dereference_dref_false_save_doesnt_cause_extra_queries
Method · 0.70
test_list_item_dereference_dref_true_save_doesnt_cause_extra_queries
Method · 0.70
test_objectid_reference_across_databases
Method · 0.70
Calls
2
StringField
Class · 0.85
IntField
Class · 0.85
Tested by
11
test_list_item_dereference
Method · 0.56
test_list_item_dereference_dref_false
Method · 0.56
test_list_item_dereference_orphan_dbref
Method · 0.56
test_list_item_dereference_dref_false_stores_as_type
Method · 0.56
test_handle_old_style_references
Method · 0.56
test_migrate_references
Method · 0.56
test_map_field_reference
Method · 0.56
test_document_reload_reference_integrity
Method · 0.56
test_list_item_dereference_dref_false_save_doesnt_cause_extra_queries
Method · 0.56
test_list_item_dereference_dref_true_save_doesnt_cause_extra_queries
Method · 0.56
test_objectid_reference_across_databases
Method · 0.56