[Bugfix] 修复ops列表任务无法删除的bug

This commit is contained in:
ibuler
2020-03-16 14:18:29 +08:00
parent 3afb8647bd
commit 3138abb00c
2 changed files with 2 additions and 2 deletions

View File

@@ -206,7 +206,7 @@ class AdHoc(OrgModelMixin):
def __str__(self):
return "{} of {}".format(self.task.name, self.short_id)
def __eq__(self, other):
def same_with(self, other):
if not isinstance(other, self.__class__):
return False
fields_check = []