summaryrefslogtreecommitdiff
path: root/taskapp/utilities
diff options
context:
space:
mode:
authornishanth2010-02-28 18:31:10 +0530
committernishanth2010-02-28 18:31:10 +0530
commit169cf685f7501b1dd800d3e5b5bfb787f2f98dcb (patch)
tree6b5ecdca6c033380475ea6f6ad2dcbaa8c225a2c /taskapp/utilities
parenta7a11ef7a859515646fa09df58753202da1920b3 (diff)
downloadpytask-169cf685f7501b1dd800d3e5b5bfb787f2f98dcb.tar.gz
pytask-169cf685f7501b1dd800d3e5b5bfb787f2f98dcb.tar.bz2
pytask-169cf685f7501b1dd800d3e5b5bfb787f2f98dcb.zip
fixed a small bug in create_notification for the case NT.
Diffstat (limited to 'taskapp/utilities')
-rw-r--r--taskapp/utilities/notification.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/taskapp/utilities/notification.py b/taskapp/utilities/notification.py
index 34d48cb..afa0faa 100644
--- a/taskapp/utilities/notification.py
+++ b/taskapp/utilities/notification.py
@@ -98,10 +98,11 @@ def create_notification(role, sent_to, sent_from=None, reply=None, task=None, re
for a_mentor in task.mentors.exclude(id=new_mentor.id):
notification.message += "<li> %s - %s </li>"%(a_mentor.username, a_mentor.email)
- notification.message += "</ul> List of users working on the task.<br />"
+ notification.message += "</ul>"
working_users = task.assigned_users.all()
if working_users:
+ notification_message += "List of users working on the task.<br />"
notification_message += "<ul>"
for a_user in working_users:
notification.message += "<li> %s - %s </li>"%(a_user.username, a_user.email)