weird issue when adding custom set
This commit is contained in:
parent
44c5c0521a
commit
9d777ac54a
|
@ -8,7 +8,9 @@ from django.template.context import RequestContext
|
||||||
from django.shortcuts import render_to_response
|
from django.shortcuts import render_to_response
|
||||||
|
|
||||||
from markitup.markup import filter_func
|
from markitup.markup import filter_func
|
||||||
|
from django.views.decorators.csrf import csrf_exempt
|
||||||
|
|
||||||
|
@csrf_exempt
|
||||||
def apply_filter(request):
|
def apply_filter(request):
|
||||||
markup = filter_func(request.POST.get('data', ''))
|
markup = filter_func(request.POST.get('data', ''))
|
||||||
return render_to_response( 'markitup/preview.html',
|
return render_to_response( 'markitup/preview.html',
|
||||||
|
|
Loading…
Reference in New Issue
Block a user