def __hash__(self):
output = []<EOL>for (key, value) in self.to_dict().items():<EOL><INDENT>if key not in self.amaas_model_attributes():<EOL><INDENT>output_value = hash(tuple(sorted(value))) if isinstance(value, dict) else value<EOL>output.append((key, output_value))<EOL><DEDENT><DEDENT>return hash(tuple(sorted(output)))<EOL>
Override the default hash behavior (that returns the id or the object)