Andy Mikhailenko  committed 5cdc27c

Bugfix: dot-expanded dictionary would convert nested dictionaries to DotExpandedDict even if they already were instances of it; so, if a nested Document instance was added, its identity (the class info) would be lost.

  • Participants
  • Parent commits 7860fdf
  • Branches default

Comments (0)

Files changed (1)

File monk/

 def make_dot_expanded(data):
-    if isinstance(data, dict):
+    if isinstance(data, DotExpandedDictMixin):
+        return data
+    elif isinstance(data, dict):
         pairs = []
         for key, value in data.iteritems():
             pairs.append((key, make_dot_expanded(value)))