Files @ f1d313fdbc5a
Branch filter:

Location: website/www/conservancy/local_context_processors.py

bkuhn
Link to Copyleft Compliance more fully.

We had a link to copyleft.org before, which I remove here, and put a
more general link to the copyleft compliance work.
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') }