# HG changeset patch # User nishanth # Date 1267121978 -19800 # Node ID d1bdd5d6c1a68155649bfc3e9485e7d36dbc792e # Parent 3a4c8fccb9f3a993ac62ad06a208b5d27e46d172 added the field remarks in request model. diff -r 3a4c8fccb9f3 -r d1bdd5d6c1a6 taskapp/models.py --- a/taskapp/models.py Thu Feb 25 20:13:59 2010 +0530 +++ b/taskapp/models.py Thu Feb 25 23:49:38 2010 +0530 @@ -137,6 +137,7 @@ sent_by = models.ForeignKey(User, related_name = "%(class)s_sent_by", blank = False) role = models.CharField(max_length = 2, blank = False) reply = models.BooleanField(default = False) + remarks = models.TextField(default = "",blank = True) is_read = models.BooleanField(default = False) creation_date = models.DateTimeField() reply_date = models.DateTimeField() diff -r 3a4c8fccb9f3 -r d1bdd5d6c1a6 taskapp/views/user.py --- a/taskapp/views/user.py Thu Feb 25 20:13:59 2010 +0530 +++ b/taskapp/views/user.py Thu Feb 25 23:49:38 2010 +0530 @@ -148,6 +148,9 @@ reqs = user.request_sent_to.filter(is_replied=False).order_by('creation_date') req_obj = reqs[int(rid)] reply = True if reply == "yes" else False + req_obj.remarks = request.POST.get('remarks', "") + req_obj.save() + reply_to_request(req_obj, reply, user) return show_msg("Your reply has been processed", browse_request_url, "view other requests") diff -r 3a4c8fccb9f3 -r d1bdd5d6c1a6 templates/user/view_request.html --- a/templates/user/view_request.html Thu Feb 25 20:13:59 2010 +0530 +++ b/templates/user/view_request.html Thu Feb 25 23:49:38 2010 +0530 @@ -19,6 +19,7 @@
+ Remarks:
Click here to return to the requests page.