Files @ 99059c2b6fb8
Branch filter:

Location: website/www/conservancy/local_context_processors.py

bkuhn
Various editorial changes, apparently from Brett.

Step 2 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') }