profile/utils.py
changeset 288 869a9ab7e2df
parent 284 72db9563fae1
equal deleted inserted replaced
287:d24b4a7147d2 288:869a9ab7e2df
       
     1 from pytask.profile.models import Notification
     1 
     2 
     2 def get_notification(nid, user):
     3 def get_notification(nid, user):
     3     """ if notification exists, and belongs to the current user, return it.
     4     """ if notification exists, and belongs to the current user, return it.
     4     else return None.
     5     else return None.
     5     """
     6     """