Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

exempt subscribe from csrf

  • Loading branch information...
commit e1edabbb235c596e1181ab97f9531bf75babfb5a 1 parent 58431c5
Justine Tunney authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  occupywallst/views.py
View
2  occupywallst/views.py
@@ -23,6 +23,7 @@
from django.http import Http404, HttpResponse, HttpResponseRedirect
from django.contrib.auth.decorators import login_required
from django.core.exceptions import ObjectDoesNotExist
+from django.views.decorators.csrf import csrf_exempt
from occupywallst import api, forms, models as db
@@ -428,6 +429,7 @@ def edit_profile(request, username):
context_instance=RequestContext(request))
+@csrf_exempt
def subscribe(request, id):
"""Sign up for double opt-in mailing list
Please sign in to comment.
Something went wrong with that request. Please try again.