Files @ 01fa72ba1e5e
Branch filter:

Location: website/www/conservancy/local_context_processors.py

keynote2k
remove spurious word "source".

bkuhn committing on behalf of Tony:

<tony> bkuhn: if you're making edits, please change "free and open
source society" to "free and open society". My Kallithea set up
is still giving me problems (even after I uploaded my SSH key).
I'll connect w/ Brett to fix next week.
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') }