seshat.apps.core.context_processors
Functions
|
Handle the notifications logic for authenticated users and fetch necessary |
Module Contents
- seshat.apps.core.context_processors.notifications(request)
Handle the notifications logic for authenticated users and fetch necessary data.
- Parameters:
request (HttpRequest) – The HTTP request object.
- Returns:
- A dictionary containing:
’notifications_count’ (int): The number of private comments for the authenticated user.
’all_polities’ (QuerySet): A queryset of all polities.
’search_term’ (str): The search term submitted in the request, if any.
- Return type:
dict