Files @ 368fc07f6feb
Branch filter:

Location: website/www/conservancy/local_context_processors.py

bkuhn
Switch link to be all blog posts on ContractPatch

Step 3 in backport of unversioned changes from Brett done in
01ab5892ba0f6c18f2d3eb001c3a88d2e45435d7.
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') }