diff options
author | Sashi20 | 2019-09-12 16:07:17 +0530 |
---|---|---|
committer | GitHub | 2019-09-12 16:07:17 +0530 |
commit | bdcae7008ff628b8c00c3ec4b597dc32ea88ebc2 (patch) | |
tree | aec86b4c03ff65b4cc7d8534c9bb7478690f7020 /website | |
parent | 8d15ad3ad1ea7cdf20564f00bb5fa3d359859228 (diff) | |
parent | 966d154e8c792ccb01af78889b6ce13657600234 (diff) | |
download | SciPy2019-bdcae7008ff628b8c00c3ec4b597dc32ea88ebc2.tar.gz SciPy2019-bdcae7008ff628b8c00c3ec4b597dc32ea88ebc2.tar.bz2 SciPy2019-bdcae7008ff628b8c00c3ec4b597dc32ea88ebc2.zip |
Merge pull request #15 from Sashi20/development
Modify url to download attachment submitted by proposar
Diffstat (limited to 'website')
-rw-r--r-- | website/views.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/website/views.py b/website/views.py index 7e4d5ad..3f272a1 100644 --- a/website/views.py +++ b/website/views.py @@ -361,7 +361,7 @@ def abstract_details(request, proposal_id=None): proposal = Proposal.objects.get(id=proposal_id) if proposal.user == user: try: - url = '/2019'+str(proposal.attachment.url) + url = str(proposal.attachment.url) context['url'] = url except: pass @@ -429,7 +429,7 @@ def comment_abstract(request, proposal_id=None): try: proposal = Proposal.objects.get(id=proposal_id) try: - url = '/2019'+str(proposal.attachment.url) + url = str(proposal.attachment.url) context['url'] = url except: pass |