Reverting Fixed hashing of EmbeddedDocuments (#348)
This commit is contained in:
		| @@ -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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user