Files @ 22b5528ae5b0
Branch filter:

Location: website/www/conservancy/local_context_processors.py

bkuhn
Note that annual supporters are not auto-renew.

We long ago decided not to auto-renew annual supporters. However, three
different potential supporters mentioned they were unsure, so this note
is added to clarify.
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') }