taskapp/utilities/user.py
changeset 143 796ff9e279a8
parent 137 e56b95298254
child 144 581ad20b8c39
--- a/taskapp/utilities/user.py	Sun Feb 28 13:27:43 2010 +0530
+++ b/taskapp/utilities/user.py	Sun Feb 28 14:44:10 2010 +0530
@@ -6,8 +6,8 @@
     """ get the no of unread requests and notifications and add them as properties for user.
     """
 
-    unread_notifications = user.notification_sent_to.filter(is_read=False,is_deleted=False).count
-    unread_requests = user.request_sent_to.filter(is_valid=True,is_replied=False).count
+    unread_notifications = user.notification_sent_to.filter(is_read=False,is_deleted=False)
+    unread_requests = user.request_sent_to.filter(is_valid=True,is_replied=False)
 
     user.unread_notifications = unread_notifications
     user.unread_requests = unread_requests