def METHOD_NAME(request, template_name="donations/search.html"):
    query = request.GET.get('q', None)
    if get_setting('site', 'global', 'searchindex') and query:
        donations = Donation.objects.METHOD_NAME(query)
    else:
        donations = Donation.objects.all()
    EventLog.objects.log()
    return render_to_resp(request=request, template_name=template_name,
        context={'donations':donations})