Files
interchan/board/context_processors.py
Alek Ratzloff 412ae8f632 Add "boards" context processor
This adds the "boards" context data to all pages, so they can render the
boards nav page.

Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
2022-07-17 19:49:17 -07:00

11 lines
232 B
Python

from django.conf import settings as django_settings
from board.models import Board
def settings(request):
return {"settings": django_settings}
def boards(request):
return {"boards": Board.objects.filter(readonly=False)}