def __eq__(self, other):
    return (isinstance(other, Task) and (self.change_date == other.change_date) and (self.create_date == other.create_date) and (self.result == other.result) and (self.status == other.status) and (self.ticket == other.ticket) and (self.user_id == other.user_id) and (self.worker_id == other.worker_id))
def __eq__(self, other):
    return (isinstance(other, Task) and (self.change_date == other.change_date) and (self.create_date == other.create_date) and (self.result == other.result) and (self.status == other.status) and (self.ticket == other.ticket) and (self.user_id == other.user_id) and (self.worker_id == other.worker_id))