fixed a small bug in create_notification for the case NT.
authornishanth
Sun, 28 Feb 2010 18:31:10 +0530
changeset 150 604808d27483
parent 149 3395960549e8
child 151 d0cb85ba462a
fixed a small bug in create_notification for the case NT.
taskapp/utilities/notification.py
--- a/taskapp/utilities/notification.py	Sun Feb 28 18:27:50 2010 +0530
+++ b/taskapp/utilities/notification.py	Sun Feb 28 18:31:10 2010 +0530
@@ -98,10 +98,11 @@
 
         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)