diff options
author | nishanth | 2010-02-25 16:17:56 +0530 |
---|---|---|
committer | nishanth | 2010-02-25 16:17:56 +0530 |
commit | 40adcbfc4a6eb40feb37a35db88ea2ed8a7845a7 (patch) | |
tree | 6229e90f1661361d2ce947ba58bb7802abbd0bea /taskapp/events | |
parent | a3cda26f529a0994c7086e76d718c4aecc8ecc0b (diff) | |
download | pytask-40adcbfc4a6eb40feb37a35db88ea2ed8a7845a7.tar.gz pytask-40adcbfc4a6eb40feb37a35db88ea2ed8a7845a7.tar.bz2 pytask-40adcbfc4a6eb40feb37a35db88ea2ed8a7845a7.zip |
added capability to remove an assigned user.
Diffstat (limited to 'taskapp/events')
-rw-r--r-- | taskapp/events/task.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/taskapp/events/task.py b/taskapp/events/task.py index a999dc7..ddd40d4 100644 --- a/taskapp/events/task.py +++ b/taskapp/events/task.py @@ -175,3 +175,10 @@ def removeTask(main_task, sub_task): 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() |