# HG changeset patch # User nishanth # Date 1267527028 -19800 # Node ID 972745147e3f9802dc833705532d7ce6edce1e5a # Parent 8d1fdb148c27b2557d785bd1138c19555e755c66 fixed a bug in edit_task view. diff -r 8d1fdb148c27 -r 972745147e3f taskapp/views/task.py --- a/taskapp/views/task.py Tue Mar 02 16:04:41 2010 +0530 +++ b/taskapp/views/task.py Tue Mar 02 16:20:28 2010 +0530 @@ -152,7 +152,7 @@ else: return show_msg(user, 'You are not authorised to create a task.') else: - return show_msg(user, 'You are not authorised to create a task.') + return show_msg(user, 'You are not authorised to create a task.', "/", "home page") def add_mentor(request, tid): """ check if the current user has the rights to edit the task and add him. @@ -521,7 +521,8 @@ and then give the user fields accordingly. """ - task = Task.objects.get(id=tid) + task = getTask(tid) + task_url = "/task/view/tid=%s"%tid user = get_user(request.user) if request.user.is_authenticated() else request.user