diff options
author | komalsheth286 | 2016-10-07 15:07:45 +0530 |
---|---|---|
committer | komalsheth286 | 2016-10-07 15:07:45 +0530 |
commit | fcbde471b480536fa041312e3faeb38a65f3d1ad (patch) | |
tree | f71c71b3183665454820a69491ee03e5f89f8a0f | |
parent | 3362ec320c62c7053f1c14dff30e01fcbd52ee34 (diff) | |
download | SciPy2016-fcbde471b480536fa041312e3faeb38a65f3d1ad.tar.gz SciPy2016-fcbde471b480536fa041312e3faeb38a65f3d1ad.tar.bz2 SciPy2016-fcbde471b480536fa041312e3faeb38a65f3d1ad.zip |
Block abstract details link for users
-rwxr-xr-x | website/views.py | 6 |
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) |