taskapp/events/task.py
changeset 105 091b044a3bf4
parent 99 64c34c1f441f
child 111 c272d4c601cd
equal deleted inserted replaced
104:d1bdd5d6c1a6 105:091b044a3bf4
    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()