diff options
author | Komal Sheth | 2016-10-04 18:00:40 +0530 |
---|---|---|
committer | GitHub | 2016-10-04 18:00:40 +0530 |
commit | d4bb8fe9333594a079b0c57d99f24ad577c0e1ad (patch) | |
tree | 86d1b135404de6d3244ea71c3f2a508907664ff1 /website | |
parent | 9ec52795e64333111603d2eefcd4b9ae084aaf23 (diff) | |
parent | 2f3cb1b10df96b5b62ccc794b1eafcfef48d4b5e (diff) | |
download | SciPy2016-d4bb8fe9333594a079b0c57d99f24ad577c0e1ad.tar.gz SciPy2016-d4bb8fe9333594a079b0c57d99f24ad577c0e1ad.tar.bz2 SciPy2016-d4bb8fe9333594a079b0c57d99f24ad577c0e1ad.zip |
Merge pull request #21 from FOSSEE/Home_page
Attachment name changd to filename_username.ext
Diffstat (limited to 'website')
-rwxr-xr-x | website/models.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/website/models.py b/website/models.py index 71de521..a7ef959 100755 --- a/website/models.py +++ b/website/models.py @@ -7,7 +7,7 @@ from scipy2016 import settings def get_document_dir(instance, filename): # ename, eext = instance.user.email.split("@") fname, fext = filename.split(".") - return '%s/attachment/%s/%s.%s' % (instance.user, instance.proposal_type, str(instance.user), fext) + return '%s/attachment/%s/%s.%s' % (instance.user, instance.proposal_type, fname+'_'+str(instance.user), fext) class Proposal(models.Model): user = models.ForeignKey(User) |