# HG changeset patch # User Brian Neal # Date 1284264282 0 # Node ID a3b47d0f4df1b5508b76cdac8a3c297684bc1e84 # Parent 1085dc38399e2ffb4e1bedc55f5170aaf2b9fb33 Exempt the Paypal IPN view from CSRF protection for #91. diff -r 1085dc38399e -r a3b47d0f4df1 gpp/donations/views.py --- a/gpp/donations/views.py Sat Sep 11 21:07:28 2010 +0000 +++ b/gpp/donations/views.py Sun Sep 12 04:04:42 2010 +0000 @@ -12,6 +12,8 @@ from django.http import HttpResponse from django.http import HttpResponseServerError from django.contrib.auth.models import User +from django.views.decorators.csrf import csrf_exempt + from donations.models import Donation @@ -55,6 +57,7 @@ context_instance = RequestContext(request)) +@csrf_exempt def ipn(request): """ This function is the IPN listener and handles the IPN POST from Paypal.