summaryrefslogtreecommitdiff
path: root/website/views.py
diff options
context:
space:
mode:
authorFOSSEE Git User2018-09-28 19:32:11 +0530
committerFOSSEE Git User2018-09-28 19:32:11 +0530
commit7bc18d752c842ed4d4f2f70ccb166f84f80cfb06 (patch)
tree314e2b0fe54a43e69bee0104487ae724fdbdb6b3 /website/views.py
parent84f30c2d2b842f8f3fa95154c2cdc351cb2a0fbb (diff)
parent4ba7e9a1828b9b6fb400044c79dfeaa19ddf0723 (diff)
downloadnccps-2018-7bc18d752c842ed4d4f2f70ccb166f84f80cfb06.tar.gz
nccps-2018-7bc18d752c842ed4d4f2f70ccb166f84f80cfb06.tar.bz2
nccps-2018-7bc18d752c842ed4d4f2f70ccb166f84f80cfb06.zip
Merge branch 'master' of https://github.com/FOSSEE/nccps-2018
Diffstat (limited to 'website/views.py')
-rw-r--r--website/views.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/website/views.py b/website/views.py
index 784157d..035c719 100644
--- a/website/views.py
+++ b/website/views.py
@@ -136,7 +136,7 @@ def view_abstracts(request):
context = {}
count_list = []
if request.user.is_authenticated:
- if user.is_superuser:
+ if user.is_staff:
proposals = Proposal.objects.all().order_by('status')
ratings = Ratings.objects.all()
context['ratings'] = ratings
@@ -449,7 +449,7 @@ def comment_abstract(request, proposal_id=None):
user = request.user
context = {}
if user.is_authenticated:
- if user.is_superuser:
+ if user.is_staff:
try:
proposal = Proposal.objects.get(id=proposal_id)
try:
@@ -531,7 +531,7 @@ def comment_abstract(request, proposal_id=None):
template = loader.get_template('cfp.html')
return HttpResponse(template.render(context, request))
else:
- template = loader.get_template('cfp.html')
+ template = loader.get_template('abstract-details.html')
return HttpResponse(template.render(context, request))