Source

django-petition / petition / context_processors.py

Full commit
1
2
3
4
5
from petition.forms import PetitionForm
from petition.models import Signature

def petition_form(req):
    return {'petition_form':PetitionForm(), 'pledge_count':Signature.objects.filter(confirmed=True).count()}