From 3f8d41933635cad0434e767967fb8e7cdf5be432 Mon Sep 17 00:00:00 2001 From: Sanj Date: Thu, 28 Apr 2011 16:52:28 +0530 Subject: [PATCH] csrf exempt issues --- itf/erang_organised/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/itf/erang_organised/views.py b/itf/erang_organised/views.py index 3626d21..d614d20 100644 --- a/itf/erang_organised/views.py +++ b/itf/erang_organised/views.py @@ -9,7 +9,7 @@ from django.db.models import Q from ox.django.shortcuts import render_to_json_response from django.core.paginator import Paginator, InvalidPage, EmptyPage from django.template import RequestContext - +from django.views.decorators.csrf import csrf_exempt RESULTS_PER_PAGE = 6 @@ -66,6 +66,7 @@ def issue_list(request): }) +@csrf_exempt def subscribe(request): email = request.POST.get("email") url = ERANG_SUBSCRIBE_URL + email