diff options
author | Komal Sheth | 2016-10-07 15:09:44 +0530 |
---|---|---|
committer | GitHub | 2016-10-07 15:09:44 +0530 |
commit | 331db7547658f166713d1af26d026b246b74d6d8 (patch) | |
tree | f71c71b3183665454820a69491ee03e5f89f8a0f | |
parent | c457916af0aae468556d7bfa004969e9220865a3 (diff) | |
parent | fcbde471b480536fa041312e3faeb38a65f3d1ad (diff) | |
download | SciPy2016-331db7547658f166713d1af26d026b246b74d6d8.tar.gz SciPy2016-331db7547658f166713d1af26d026b246b74d6d8.tar.bz2 SciPy2016-331db7547658f166713d1af26d026b246b74d6d8.zip |
Merge pull request #29 from FOSSEE/Home_page
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) |