From 746fa42f6c72ab8081c503a2f6f4b0e31af18dce Mon Sep 17 00:00:00 2001 From: "Bradley M. Kuhn" Date: Wed, 14 Jan 2026 10:07:43 -0800 Subject: [PATCH] Next step, make a sitefundgoal1 object. --- conservancy/context_processors.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/conservancy/context_processors.py b/conservancy/context_processors.py index 3c6ed3d2..24cb2afc 100644 --- a/conservancy/context_processors.py +++ b/conservancy/context_processors.py @@ -7,7 +7,11 @@ def sitefundraiser(request): fundgoal0 = FundraisingGoal.objects.get(fundraiser_code_name=settings.SITE_FUNDGOAL_0) except FundraisingGoal.DoesNotExist: fundgoal0 = None - return {'sitefundgoal0': fundgoal0 } + try: + fundgoal1 = FundraisingGoal.objects.get(fundraiser_code_name=settings.SITE_FUNDGOAL_1) + except FundraisingGoal.DoesNotExist: + fundgoal1 = None + return {'sitefundgoal0': fundgoal0, 'sitefundgoal1': fundgoal1 } def host_url(request):