equal
deleted
inserted
replaced
12 |
12 |
13 if subs or any(map(lambda t:t.status!="CM",deps)): |
13 if subs or any(map(lambda t:t.status!="CM",deps)): |
14 task.status = "LO" |
14 task.status = "LO" |
15 else: |
15 else: |
16 task.status = "OP" |
16 task.status = "OP" |
|
17 |
|
18 task.mentors.clear() |
|
19 task.mentors.add(task.created_by) |
17 task.save() |
20 task.save() |
18 return task |
21 return task |
19 |
22 |
20 def addSubTask(main_task, sub_task): |
23 def addSubTask(main_task, sub_task): |
21 """ add the task to subs attribute of the task and update its status. |
24 """ add the task to subs attribute of the task and update its status. |