

def __eq__(self, other):
    return ((other.__class__ == self.__class__) and (self._get_pk_value() is not None) and (other._get_pk_value() == self._get_pk_value()))

dataset/ETHPy150Open coleifer/peewee/peewee.py Model.__eq__/original