Files @ ab29d4563909
Branch filter:

Location: website/www/conservancy/local_context_processors.py

brett
Supporter page: Try #2 for scroll to type selection after window ready.

* Trigger on the "load" event rather than "ready".
* Install the handler outside document's "ready" handler so it should
take effect more reliably.
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') }