Ticket #2261: base.py.patch
File base.py.patch, 418 bytes (added by , 18 years ago) |
---|
-
base.py
old new 77 77 def __eq__(self, other): 78 78 return isinstance(other, self.__class__) and self._get_pk_val() == other._get_pk_val() 79 79 80 def __hash__(self): 81 return hash('%s%s' % (hash(self.__class__), self._get_pk_val())) 82 80 83 def __ne__(self, other): 81 84 return not self.__eq__(other) 82 85