Merge branch 'master' of https://github.com/andreyfedoseev/mongoengine
This commit is contained in:
commit
b0f127af4e
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user