Skip to content

Commit

Permalink
Merge pull request #1 from HBS-HBX/jf/p3
Browse files Browse the repository at this point in the history
Jf/p3
  • Loading branch information
kofic authored Dec 20, 2019
2 parents b070e7d + e92176f commit dd6a590
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 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 All @@ -22,7 +21,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 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 dd6a590

Please sign in to comment.