diff options
author | Sashi20 | 2018-09-17 16:32:56 +0530 |
---|---|---|
committer | Sashi20 | 2018-09-17 16:32:56 +0530 |
commit | cb6b8b3112363c8717575ee09f4447404ab99c59 (patch) | |
tree | b61eb5b553914edbb5c890f22ae4fb4b3ed09125 /website/models.py | |
parent | 8c6c66af7b4b628a2063261ffd240ee4c715f62f (diff) | |
download | nccps-2018-cb6b8b3112363c8717575ee09f4447404ab99c59.tar.gz nccps-2018-cb6b8b3112363c8717575ee09f4447404ab99c59.tar.bz2 nccps-2018-cb6b8b3112363c8717575ee09f4447404ab99c59.zip |
Added nccps-2018 prefix to the urls
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 f5b004a..06a84ac 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 '%s/attachment/%s/%s.%s' % (instance.user, instance.proposal_type, fname+'_'+str(instance.user), fext) + return 'paper_uploads/%s/attachment/%s/%s.%s' % (instance.user, instance.proposal_type, fname+'_'+str(instance.user), fext) class Proposal(models.Model): |