diff --git a/nailgun/entity_mixins.py b/nailgun/entity_mixins.py index 07d02939..c61a3a92 100644 --- a/nailgun/entity_mixins.py +++ b/nailgun/entity_mixins.py @@ -595,7 +595,7 @@ def __eq__(self, other): :param other: entity to compare self to :return: boolean indicating if entities are equal or not """ - if not isinstance(other, type(self)): + if not isinstance(other, type(self)) and not isinstance(self, type(other)): return False return self.to_json_dict() == other.to_json_dict()