Skip to content

Commit

Permalink
Stop usign weakref in BaseDict
Browse files Browse the repository at this point in the history
  • Loading branch information
Furr committed Aug 16, 2018
1 parent cfdc42e commit 57af372
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mongoengine/base/datastructures.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def __init__(self, dict_items, instance, name):
EmbeddedDocument = _import_class('EmbeddedDocument')

if isinstance(instance, (Document, EmbeddedDocument)):
self._instance = weakref.proxy(instance)
self._instance = instance
self._name = name
super(BaseDict, self).__init__(dict_items)

Expand Down

0 comments on commit 57af372

Please sign in to comment.