Reverting Fixed hashing of EmbeddedDocuments (#348)

This commit is contained in:
Ross Lawley
2013-06-05 13:03:15 +00:00
parent f8904a5504
commit 5cb2812231
2 changed files with 5 additions and 1 deletions

View File

@@ -1,9 +1,11 @@
import warnings
import hashlib
import pymongo
import re
from pymongo.read_preferences import ReadPreference
from bson import ObjectId
from bson.dbref import DBRef
from mongoengine import signals
from mongoengine.base import (DocumentMetaclass, TopLevelDocumentMetaclass,
@@ -53,6 +55,9 @@ class EmbeddedDocument(BaseDocument):
return self._data == other._data
return False
def __ne__(self, other):
return not self.__eq__(other)
class Document(BaseDocument):
"""The base class used for defining the structure and properties of