summaryrefslogtreecommitdiff
path: root/website/views.py
diff options
context:
space:
mode:
authorSashi202019-09-12 16:07:17 +0530
committerGitHub2019-09-12 16:07:17 +0530
commitbdcae7008ff628b8c00c3ec4b597dc32ea88ebc2 (patch)
treeaec86b4c03ff65b4cc7d8534c9bb7478690f7020 /website/views.py
parent8d15ad3ad1ea7cdf20564f00bb5fa3d359859228 (diff)
parent966d154e8c792ccb01af78889b6ce13657600234 (diff)
downloadSciPy2019-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/views.py')
-rw-r--r--website/views.py4
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