equal
deleted
inserted
replaced
15 else: |
15 else: |
16 task.status = "OP" |
16 task.status = "OP" |
17 |
17 |
18 task.mentors.clear() |
18 task.mentors.clear() |
19 task.mentors.add(task.created_by) |
19 task.mentors.add(task.created_by) |
|
20 |
|
21 task.comment_set.update(is_deleted=True) |
|
22 task.comment_set.update(deleted_by=task.created_by) |
|
23 |
20 task.save() |
24 task.save() |
21 return task |
25 return task |
22 |
26 |
23 def addSubTask(main_task, sub_task): |
27 def addSubTask(main_task, sub_task): |
24 """ add the task to subs attribute of the task and update its status. |
28 """ add the task to subs attribute of the task and update its status. |