diff options
author | Sashi20 | 2018-09-18 15:22:34 +0530 |
---|---|---|
committer | Sashi20 | 2018-09-18 15:38:42 +0530 |
commit | e8b91eb48c35252159dc5b03da3adff393e071ad (patch) | |
tree | bc5783054e6b3f3ec4f2be9a9d4120b2f8ef1b1c /website/models.py | |
parent | 729145dc29514f25be34168049e5bfd1838379f1 (diff) | |
download | nccps-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.py | 2 |
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): |