Files @ 0ef963a5bd8f
Branch filter:

Location: website/www/conservancy/local_context_processors.py

brett
img: Add picture of LCA Outreachy donation push.

Captured from the video at <https://www.youtube.com/watch?v=brNmfD1Lb7M>;,
around the 2:00:00 mark.
from conservancy.apps.fundgoal.models import FundraisingGoal as FundraisingGoal

def fundgoal_lookup(fundraiser_sought):
    try:
        return FundraisingGoal.objects.get(fundraiser_code_name=fundraiser_sought)
    except FundraisingGoal.DoesNotExist:
        # we have no object!  do something
        return None

def sitefundraiser(request):
    return {'sitefundgoal': fundgoal_lookup('supporterrun') }