From d1ed4ce79db6d5292ea167e20bbfb76c0f6c37a5 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Thu, 2 Jan 2014 12:27:53 +0000 Subject: [PATCH] fix permission error --- pandora/document/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora/document/views.py b/pandora/document/views.py index f92532d2..86c3e5f2 100644 --- a/pandora/document/views.py +++ b/pandora/document/views.py @@ -41,7 +41,7 @@ def addDocument(request): document = models.Document.get(id) document.add(item) else: - response = json_response(status=403, file='permission denied') + response = json_response(status=403, text='permission denied') return render_to_json_response(response) actions.register(addDocument, cache=False)