From fcbde471b480536fa041312e3faeb38a65f3d1ad Mon Sep 17 00:00:00 2001 From: komalsheth286 Date: Fri, 7 Oct 2016 15:07:45 +0530 Subject: Block abstract details link for users --- website/views.py | 6 +++--- 1 file 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) -- cgit