Skip to content

Commit

Permalink
remove weakref alltogether
Browse files Browse the repository at this point in the history
  • Loading branch information
Furr committed Aug 16, 2018
1 parent d54c75f commit e92176f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions mongoengine/base/datastructures.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import itertools
import weakref

from bson import DBRef
import six
Expand Down Expand Up @@ -107,7 +106,7 @@ def __init__(self, list_items, instance, name):
EmbeddedDocument = _import_class('EmbeddedDocument')

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

Expand Down

0 comments on commit e92176f

Please sign in to comment.