allianceauth/notifications/context_processors.py
Adarnof 5e2c828c3b Front-end notification system
Currently only creates notifications for logging events
Addresses #75
2016-02-13 21:53:43 +00:00

5 lines
181 B
Python

from .models import Notification
def user_notification_count(request):
return {'notifications':len(Notification.objects.filter(user__id=request.user.id).filter(viewed=False))}