Skip to content
This repository has been archived by the owner on Jul 14, 2020. It is now read-only.

Commit

Permalink
fix a bug in _make_reference
Browse files Browse the repository at this point in the history
  • Loading branch information
namlook@nichjo committed Jan 7, 2010
1 parent 505f43e commit 0e9f4ce
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mongokit/document.py
Original file line number Diff line number Diff line change
Expand Up @@ -470,6 +470,7 @@ def _make_reference(self, doc, struct, path=""):
# if the embed doc indexed was None but not the new embed one,
# we update the index
if self._dbrefs[new_path] is None and doc[key] is not None:
doc[key].save()
self._dbrefs[new_path] = doc[key]
# if the embed obj is already indexed, we check is the
# one we get has not changed. If so, we save the embed
Expand Down

0 comments on commit 0e9f4ce

Please sign in to comment.