pytask/profile/templatetags/user_tags.py
changeset 419 0bf7c07ef922
parent 307 c6bca38c1cbf
equal deleted inserted replaced
418:df241055a1a7 419:0bf7c07ef922
     6 def notf_dsp(user):
     6 def notf_dsp(user):
     7 
     7 
     8     notf_cnt = user.notification_sent_to.filter(is_deleted=False,
     8     notf_cnt = user.notification_sent_to.filter(is_deleted=False,
     9                                                 is_read=False).count()
     9                                                 is_read=False).count()
    10 
    10 
    11     return u'notifications(%s)'%notf_cnt if notf_cnt else u'notifications'
    11     return u'Notifications(%s)'%notf_cnt if notf_cnt else u'Notifications'
    12 
    12