Files @ 6dcb9d35e347
Branch filter:

Location: website/www/conservancy/

blogs, news: Don't shade entries on listing pages.

This just causes entire pages to be shaded, which is undesirable.
from conservancy.apps.fundgoal.models import FundraisingGoal as FundraisingGoal

def fundgoal_lookup(fundraiser_sought):
        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') }