Files @ be762220af99
Branch filter:

Location: website/www/conservancy/local_context_processors.py

bkuhn
Foresight project wound down a while back.

Foresight project isn't active anymore and informed us a while back that
they weren't. We left them up for a time, but it was confusing
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') }