From 4c6db1c3a7f55ec138d004a90e1a9908221b4f82 Mon Sep 17 00:00:00 2001 From: Karen Date: Thu, 30 Jun 2011 20:02:55 +0530 Subject: [PATCH] @csfr_exampt for json file list --- edgware/files/views.py | 2 +- edgware/templates/upload_files.html | 32 +---------------------------- 2 files changed, 2 insertions(+), 32 deletions(-) diff --git a/edgware/files/views.py b/edgware/files/views.py index 55bceb4..9afbaeb 100644 --- a/edgware/files/views.py +++ b/edgware/files/views.py @@ -231,7 +231,7 @@ def deleteFile(request): } return render_to_json_response(response) - +@csrf_exempt def fileList(request): category = request.POST.get("category", '') typ = request.POST.get("fileType", '') diff --git a/edgware/templates/upload_files.html b/edgware/templates/upload_files.html index a8d77fd..7db17fd 100644 --- a/edgware/templates/upload_files.html +++ b/edgware/templates/upload_files.html @@ -70,37 +70,7 @@ $(function() { - - + {% endblock %}