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 {}
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),
            "notifications": Notice.objects.filter(user=request.user.id)
        }
    else:
        return {}
Add user notifications to context processor
Add user notifications to context processor
