From d94b8a9d73de440142d24535bcafd910613e9f70 Mon Sep 17 00:00:00 2001 From: mahesh Date: Tue, 26 Apr 2016 16:05:26 +0530 Subject: removed request context in admin_tools --- tbc/views.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tbc/views.py b/tbc/views.py index e866c46..7ca634b 100755 --- a/tbc/views.py +++ b/tbc/views.py @@ -1423,11 +1423,12 @@ def link_image(request): @login_required(login_url="/login/") def admin_tools(request): - ci = RequestContext(request) + context = {} + context.update(csrf(request)) curr_user = request.user if not is_reviewer(curr_user): raise Http404("You are not allowed to view this page") else: - context = {"reviewer":curr_user} + context["reviewer"] = curr_user return render_to_response('tbc/admin-tools.html', context, ci) -- cgit From 1d1516a85d60a8cb3baa0467bd7b4fc2b6da0c7f Mon Sep 17 00:00:00 2001 From: mahesh Date: Tue, 26 Apr 2016 16:06:15 +0530 Subject: removed request context in admin_tools --- tbc/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tbc/views.py b/tbc/views.py index 7ca634b..1344b9f 100755 --- a/tbc/views.py +++ b/tbc/views.py @@ -1431,4 +1431,4 @@ def admin_tools(request): raise Http404("You are not allowed to view this page") else: context["reviewer"] = curr_user - return render_to_response('tbc/admin-tools.html', context, ci) + return render_to_response('tbc/admin-tools.html', context) -- cgit