fix post preview for django 1.3: added csrf_exempt decorator
This commit is contained in:
parent
10b451ffb6
commit
a47c919f7d
1 changed files with 2 additions and 1 deletions
|
@ -15,6 +15,7 @@ from django.utils import translation
|
|||
from django.utils.encoding import smart_str
|
||||
from django.views.decorators.http import require_POST
|
||||
from django.db import transaction
|
||||
from django.views.decorators.csrf import csrf_exempt
|
||||
|
||||
from djangobb_forum.util import render_to, paged, build_form, paginate, set_language
|
||||
from djangobb_forum.models import Category, Forum, Topic, Post, Profile, Reputation,\
|
||||
|
@ -753,7 +754,7 @@ def show_attachment(request, hash):
|
|||
|
||||
|
||||
@login_required
|
||||
#@require_POST
|
||||
@csrf_exempt
|
||||
@render_to('forum/post_preview.html')
|
||||
def post_preview(request):
|
||||
'''Preview for markitup'''
|
||||
|
|
Reference in a new issue