From 9d777ac54ae1218724224c356723aa1a4b9b12bf Mon Sep 17 00:00:00 2001 From: Sanj Date: Tue, 8 Nov 2011 09:10:14 +0530 Subject: [PATCH] weird issue when adding custom set --- markitup/views.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/markitup/views.py b/markitup/views.py index 7e00fa1..35f3b8c 100644 --- a/markitup/views.py +++ b/markitup/views.py @@ -8,7 +8,9 @@ from django.template.context import RequestContext from django.shortcuts import render_to_response from markitup.markup import filter_func +from django.views.decorators.csrf import csrf_exempt +@csrf_exempt def apply_filter(request): markup = filter_func(request.POST.get('data', '')) return render_to_response( 'markitup/preview.html',