styling fixes, progress on homepage
This commit is contained in:
parent
fbdb6e779f
commit
b95a3abca3
4 changed files with 31 additions and 2 deletions
7
froide_govplan/context_processors.py
Normal file
7
froide_govplan/context_processors.py
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
from .models import GovernmentPlan
|
||||
|
||||
def plans_context(request):
|
||||
if request.path == "/": # nur auf der Startseite
|
||||
plans = GovernmentPlan.objects.filter(public=True)
|
||||
return {"plans": plans}
|
||||
return {}
|
||||
Loading…
Add table
Add a link
Reference in a new issue