summaryrefslogtreecommitdiff
path: root/website/models.py
diff options
context:
space:
mode:
authorSashi202018-09-18 15:22:34 +0530
committerSashi202018-09-18 15:38:42 +0530
commite8b91eb48c35252159dc5b03da3adff393e071ad (patch)
treebc5783054e6b3f3ec4f2be9a9d4120b2f8ef1b1c /website/models.py
parent729145dc29514f25be34168049e5bfd1838379f1 (diff)
downloadnccps-2018-e8b91eb48c35252159dc5b03da3adff393e071ad.tar.gz
nccps-2018-e8b91eb48c35252159dc5b03da3adff393e071ad.tar.bz2
nccps-2018-e8b91eb48c35252159dc5b03da3adff393e071ad.zip
Fixed issue of downloading attachments and minor changes in templates
Diffstat (limited to 'website/models.py')
-rw-r--r--website/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/website/models.py b/website/models.py
index 06a84ac..f5b004a 100644
--- a/website/models.py
+++ b/website/models.py
@@ -31,7 +31,7 @@ def get_document_dir(instance, filename):
# ename, eext = instance.user.email.split("@")
fname, fext = os.path.splitext(filename)
# print "----------------->",instance.user
- return 'paper_uploads/%s/attachment/%s/%s.%s' % (instance.user, instance.proposal_type, fname+'_'+str(instance.user), fext)
+ return '%s/attachment/%s/%s.%s' % (instance.user, instance.proposal_type, fname+'_'+str(instance.user), fext)
class Proposal(models.Model):