Files @ 8cb1f3f685eb
Branch filter:

Location: website/www/conservancy/local_context_processors.py

brett
js: Use three-part progressbar when no middle goal defined.

Since our current fundraiser doesn't have a "middle goal," this makes
it a little easier to maintain the template and do the math.
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') }