summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkomalsheth2862016-10-07 15:07:45 +0530
committerkomalsheth2862016-10-07 15:07:45 +0530
commitfcbde471b480536fa041312e3faeb38a65f3d1ad (patch)
treef71c71b3183665454820a69491ee03e5f89f8a0f
parent3362ec320c62c7053f1c14dff30e01fcbd52ee34 (diff)
downloadSciPy2016-fcbde471b480536fa041312e3faeb38a65f3d1ad.tar.gz
SciPy2016-fcbde471b480536fa041312e3faeb38a65f3d1ad.tar.bz2
SciPy2016-fcbde471b480536fa041312e3faeb38a65f3d1ad.zip
Block abstract details link for users
-rwxr-xr-xwebsite/views.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/website/views.py b/website/views.py
index 6870200..e684d95 100755
--- a/website/views.py
+++ b/website/views.py
@@ -310,7 +310,7 @@ def abstract_details(request, proposal_id=None):
elif user is not None:
proposal = Proposal.objects.get(id=proposal_id)
print "------------------> owner",proposal.user
- if proposal.user = user:
+ if proposal.user == user:
url = '/2016'+str(proposal.attachment.url)
comments = Comments.objects.filter(proposal=proposal)
context['proposal'] = proposal
@@ -320,8 +320,8 @@ def abstract_details(request, proposal_id=None):
path, filename = os.path.split(str(proposal.attachment))
context['filename'] = filename
return render(request, 'abstract-details.html', context)
- else:
- return render(request, 'cfp.html', context)
+ else:
+ return render(request, 'cfp.html', context)
else:
return render(request, 'cfp.html', context)