taskapp/events/task.py
changeset 94 d1f59bbc2685
parent 92 c99f09bebe56
child 95 e4034904f82e
--- a/taskapp/events/task.py	Thu Feb 25 06:07:55 2010 +0530
+++ b/taskapp/events/task.py	Thu Feb 25 16:17:56 2010 +0530
@@ -175,3 +175,10 @@
     mapobj = Map.objects.get(main=main_task)
     mapobj.subs.remove(sub_task)
     mapobj.save()
+
+def removeUser(main_task, rem_user):
+    """ right now, just remove the user from the list of assigned_users.
+    """
+
+    main_task.assigned_users.remove(rem_user)
+    main_task.save()