taskapp/utilities/request.py
changeset 81 cade14d25a58
parent 80 8917b190c4c4
child 82 7c38ff64aee7
--- a/taskapp/utilities/request.py	Wed Feb 24 17:11:59 2010 +0530
+++ b/taskapp/utilities/request.py	Wed Feb 24 17:23:25 2010 +0530
@@ -1,7 +1,7 @@
 from pytask.taskapp.models import Request
 from datetime import datetime
 
-def create_request(to,by,role,task=None,assigned_user=None):
+def create_request(to,by,role,task=None,assigned_user=None,pynts=0):
     """
     creates an unreplied request, based on the passed arguments
         to - a list of users to which the notification is to be sent
@@ -20,6 +20,7 @@
         req.task = task
     if assigned_user:
         req.assigned_user = assigned_user
+    req.pynts = pynts
     req.save()
 
 def reply_to_request(request_id, reply):