diff options
author | Mahesh Gudi | 2016-04-26 16:08:22 +0530 |
---|---|---|
committer | Mahesh Gudi | 2016-04-26 16:08:22 +0530 |
commit | a737d1ddf00e8403c5f9207252629c38edca2174 (patch) | |
tree | aa7b6e1ff5bd6fd29b513662fe039940e65f1d9c | |
parent | 7668df23c88c64c13f2a7473d3bd7d6167e4ea2f (diff) | |
parent | 1d1516a85d60a8cb3baa0467bd7b4fc2b6da0c7f (diff) | |
download | Python-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-x | tbc/views.py | 7 |
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) |