def __eq__(self, other):
<EOL>if type(self) != type(other):<EOL><INDENT>return False<EOL><DEDENT>if not self.hasSameValues(other):<EOL><INDENT>return False<EOL><DEDENT>if getattr(self, '<STR_LIT>', None) != getattr(other, '<STR_LIT>', None):<EOL><INDENT>return False<EOL><DEDENT>return True<EOL>
__eq__ - Check if two IndexedRedisModels are equal.

They are equal if they have the same type and same field values (including id).

To check if two models have the same values (but can have different ids), use #hasSameValues method.