summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMahesh Gudi2016-04-26 16:08:22 +0530
committerMahesh Gudi2016-04-26 16:08:22 +0530
commita737d1ddf00e8403c5f9207252629c38edca2174 (patch)
treeaa7b6e1ff5bd6fd29b513662fe039940e65f1d9c
parent7668df23c88c64c13f2a7473d3bd7d6167e4ea2f (diff)
parent1d1516a85d60a8cb3baa0467bd7b4fc2b6da0c7f (diff)
downloadPython-TBC-Interface-a737d1ddf00e8403c5f9207252629c38edca2174.tar.gz
Python-TBC-Interface-a737d1ddf00e8403c5f9207252629c38edca2174.tar.bz2
Python-TBC-Interface-a737d1ddf00e8403c5f9207252629c38edca2174.zip
Merge pull request #31 from maheshgudi/master
removed requestcontext
-rwxr-xr-xtbc/views.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/tbc/views.py b/tbc/views.py
index e866c46..1344b9f 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}
- return render_to_response('tbc/admin-tools.html', context, ci)
+ context["reviewer"] = curr_user
+ return render_to_response('tbc/admin-tools.html', context)