Files @ 5754f877c5c1
Branch filter:

Location: website/www/conservancy/local_context_processors.py

bkuhn
Add paragraph about principles-discuss.

Welcome those who visit this page to join the principles-discuss mailing
list. In doing so, also make a link to the principles themselves.
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') }