This commit is contained in:
Ross Lawley 2012-06-18 21:12:52 +01:00
commit b0f127af4e

View File

@ -40,6 +40,11 @@ class EmbeddedDocument(BaseDocument):
else:
super(EmbeddedDocument, self).__delattr__(*args, **kwargs)
def __eq__(self, other):
if isinstance(other, self.__class__):
return self._data == other._data
return False
class Document(BaseDocument):
"""The base class used for defining the structure and properties of