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>
This commit is contained in:
2022-07-17 19:49:17 -07:00
parent a5ba36e049
commit 412ae8f632
4 changed files with 7 additions and 11 deletions

View File

@@ -1,5 +1,10 @@
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)}