diff options
author | Madhusudan.C.S | 2011-01-14 00:59:09 +0530 |
---|---|---|
committer | Madhusudan.C.S | 2011-01-14 00:59:09 +0530 |
commit | bb35c0a7546440247dad47f57d748259d0e9a744 (patch) | |
tree | 76f740c37954d23da88fcd2af856f74a5bc1e9e5 /taskapp/utilities/user.py | |
parent | 8b708b1b475caad85e12022db6d3d9af3387fbfe (diff) | |
download | pytask-bb35c0a7546440247dad47f57d748259d0e9a744.tar.gz pytask-bb35c0a7546440247dad47f57d748259d0e9a744.tar.bz2 pytask-bb35c0a7546440247dad47f57d748259d0e9a744.zip |
Purging the repository for the new set of changes by Nishanth.
Diffstat (limited to 'taskapp/utilities/user.py')
-rw-r--r-- | taskapp/utilities/user.py | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/taskapp/utilities/user.py b/taskapp/utilities/user.py deleted file mode 100644 index 12ac9fb..0000000 --- a/taskapp/utilities/user.py +++ /dev/null @@ -1,17 +0,0 @@ -""" -A collection of utility functions for user. -""" - -def get_user(user): - """ 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) - unread_requests = user.request_sent_to.filter(is_valid=True,is_replied=False,is_read=False) - - user.unread_notifications = unread_notifications - user.unread_requests = unread_requests - - return user - - |