summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormahesh2016-04-21 18:34:46 +0530
committermahesh2016-04-21 18:34:46 +0530
commit1d6eede612130ae0bb6ea4fa03f60fc71ecbbe3d (patch)
tree6aa73ad27571337753edf14131d61d88a796dc71
parentf60d22247606b536227f9dc9a3d58d2a2919665d (diff)
downloadPython-TBC-Interface-1d6eede612130ae0bb6ea4fa03f60fc71ecbbe3d.tar.gz
Python-TBC-Interface-1d6eede612130ae0bb6ea4fa03f60fc71ecbbe3d.tar.bz2
Python-TBC-Interface-1d6eede612130ae0bb6ea4fa03f60fc71ecbbe3d.zip
changes in context
-rw-r--r--commentingapp/views.py2
-rwxr-xr-xtbc/views.py4
-rw-r--r--tbc_error_page/views.py6
3 files changed, 6 insertions, 6 deletions
diff --git a/commentingapp/views.py b/commentingapp/views.py
index a97fc07..22bf0e0 100644
--- a/commentingapp/views.py
+++ b/commentingapp/views.py
@@ -17,7 +17,7 @@ def commenting(request):
raise Http404("You are not allowed to view this page")
else:
url_instance = Url.objects.filter(Q(comments__is_notified = 0)).distinct()
- context = {"url_context": url_instance, "user": curr_user}
+ context = {"url_context": url_instance, "reviewer": curr_user}
if request.method == "POST":
notified_comment_list = request.POST.getlist("comment")
diff --git a/tbc/views.py b/tbc/views.py
index 1466ff1..f6e93ae 100755
--- a/tbc/views.py
+++ b/tbc/views.py
@@ -1423,5 +1423,5 @@ def admin_tools(request):
if not is_reviewer(curr_user):
raise Http404("You are not allowed to view this page")
else:
- context = {"user":curr_user}
- return render_to_response('tbc/admin-tools.html', context, context_instance=ci)
+ context = {"reviewer":curr_user}
+ return render_to_response('tbc/admin-tools.html', context, ci)
diff --git a/tbc_error_page/views.py b/tbc_error_page/views.py
index 3d87454..6dd5206 100644
--- a/tbc_error_page/views.py
+++ b/tbc_error_page/views.py
@@ -28,12 +28,12 @@ def error(request):
deliberate_urls_list = request.POST.getlist("deliberate")
db_instance.update_deliberate_error(deliberate_urls_list)
- context = {"user":request.user, "deliberate" :deliberate_urls_list}
+ context = {"reviewer":request.user, "deliberate" :deliberate_urls_list}
return render_to_response ("deliberate.html", context, ci)
- context = {"context": error_details, "user": curr_user}
+ context = {"context": error_details, "reviewer": curr_user}
return render_to_response ("error.html", context, ci)
@login_required(login_url="/login/")
@@ -54,7 +54,7 @@ def broken(request):
db_instance.update_broken_data(broken_json_data)
broken = Broken.objects.all()
- context = {"broken": broken, "user": curr_user}
+ context = {"broken": broken, "reviewer": curr_user}
return render_to_response("broken.html", context, ci)