Fixed EmbeddedDocument with ReferenceField equality issue (#502)

This commit is contained in:
Ross Lawley
2013-11-29 12:46:18 +00:00
parent bb56f92213
commit a2a698ab0e
4 changed files with 21 additions and 1 deletions

View File

@@ -66,7 +66,7 @@ class EmbeddedDocument(BaseDocument):
def __eq__(self, other):
if isinstance(other, self.__class__):
return self._data == other._data
return self.to_mongo() == other.to_mongo()
return False
def __ne__(self, other):