def __eq__(self, other):
        if isinstance(other, Category):
            return self.key == other.key
        else:
            return False
dataset/ETHPy150Open django-bmf/django-bmf/djangobmf/core/category.py/Category.__eq__/original