equal
deleted
inserted
replaced
73 else: |
73 else: |
74 main_task.status = "LO" |
74 main_task.status = "LO" |
75 |
75 |
76 main_task.save() |
76 main_task.save() |
77 |
77 |
|
78 def reqMentor(task, mentor, req_by): |
|
79 """ create a request object with role as MT. |
|
80 """ |
|
81 |
|
82 create_request(sent_by=req_by, role="MT", sent_to=mentor, task=task) |
|
83 |
78 def addMentor(task,mentor): |
84 def addMentor(task,mentor): |
79 """ add the mentor to mentors list of the task """ |
85 """ add the mentor to mentors list of the task """ |
80 |
86 |
81 task.mentors.add(mentor) |
87 task.mentors.add(mentor) |
82 task.save() |
88 task.save() |