summaryrefslogtreecommitdiff
path: root/tbc/views.py
diff options
context:
space:
mode:
authormahesh2016-04-26 16:05:26 +0530
committermahesh2016-04-26 16:05:26 +0530
commitd94b8a9d73de440142d24535bcafd910613e9f70 (patch)
treed105c1709b0c188408411658955cf63e25543e22 /tbc/views.py
parenta1018449fb6e6d584a8b86f07c6642ce852c4a19 (diff)
downloadPython-TBC-Interface-d94b8a9d73de440142d24535bcafd910613e9f70.tar.gz
Python-TBC-Interface-d94b8a9d73de440142d24535bcafd910613e9f70.tar.bz2
Python-TBC-Interface-d94b8a9d73de440142d24535bcafd910613e9f70.zip
removed request context in admin_tools
Diffstat (limited to 'tbc/views.py')
-rwxr-xr-xtbc/views.py5
1 files 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)