diff options
author | Sashi20 | 2019-09-12 17:04:41 +0530 |
---|---|---|
committer | GitHub | 2019-09-12 17:04:41 +0530 |
commit | 3c724e5336f9bb3d1b899e675254a294564362f6 (patch) | |
tree | d36e825dafa7b43c1f4c4fc088ff479519f4d79e /website | |
parent | bdcae7008ff628b8c00c3ec4b597dc32ea88ebc2 (diff) | |
parent | 3f1b743b435ae6018a849272a2189eb2bd310bcb (diff) | |
download | SciPy2019-3c724e5336f9bb3d1b899e675254a294564362f6.tar.gz SciPy2019-3c724e5336f9bb3d1b899e675254a294564362f6.tar.bz2 SciPy2019-3c724e5336f9bb3d1b899e675254a294564362f6.zip |
Merge pull request #16 from Sashi20/development
Modify download attachment url
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 3f272a1..7e4d5ad 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 = str(proposal.attachment.url) + url = '/2019'+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 = str(proposal.attachment.url) + url = '/2019'+str(proposal.attachment.url) context['url'] = url except: pass |