hmarr/mongoengine — pull request #511 by andreyfedoseev (2012-05-22 16:57:42+00:00)
Title: Add sensible __eq__ method to EmbeddedDocument

At the moment the comparison of embedded documents always return `False`, even if they are perfectly equal. It's because `EmbeddedDocument` inherits `__eq__` method form BaseDocument which tries to compare documents by IDs.

I've defined the `__eq__` method which uses actual data to ascertain that embedded documents are equal.