Mercurial > public > sg101
changeset 238:a3b47d0f4df1
Exempt the Paypal IPN view from CSRF protection for #91.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sun, 12 Sep 2010 04:04:42 +0000 |
parents | 1085dc38399e |
children | dcc929973bba |
files | gpp/donations/views.py |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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.