mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2025-07-09 12:30:15 +02:00
Context processor to count notifications for display in base template Logging handler to generate notifications for users with permission
5 lines
156 B
Python
5 lines
156 B
Python
from .models import Notification
|
|
|
|
def user_notification_count(request):
|
|
return len(Notification.objects.filter(user=request.user).filter(viewed=False))
|