blob: 11a2b41ae044b0224ad9b66d092c58af37440b6f (
plain)
1
2
3
4
5
6
7
8
9
10
|
from notification.models import Notice
def notification(request):
if request.user.is_authenticated():
return {
"notice_unseen_count": Notice.objects.unseen_count_for(request.user, on_site=True),
}
else:
return {}
|