taskapp/events/task.py
changeset 94 d1f59bbc2685
parent 92 c99f09bebe56
child 95 e4034904f82e
equal deleted inserted replaced
93:1a1e712e60fd 94:d1f59bbc2685
   173     """
   173     """
   174 
   174 
   175     mapobj = Map.objects.get(main=main_task)
   175     mapobj = Map.objects.get(main=main_task)
   176     mapobj.subs.remove(sub_task)
   176     mapobj.subs.remove(sub_task)
   177     mapobj.save()
   177     mapobj.save()
       
   178 
       
   179 def removeUser(main_task, rem_user):
       
   180     """ right now, just remove the user from the list of assigned_users.
       
   181     """
       
   182 
       
   183     main_task.assigned_users.remove(rem_user)
       
   184     main_task.save()