diff options
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) |