summaryrefslogtreecommitdiff
path: root/tbc/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'tbc/models.py')
-rw-r--r--tbc/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tbc/models.py b/tbc/models.py
index 00cb56b..a1f2408 100644
--- a/tbc/models.py
+++ b/tbc/models.py
@@ -58,7 +58,7 @@ def get_image_dir(instance, filename):
def get_sample_dir(instance, filename):
- user_name = instance.user.user.first_name+instance.user.user.last_name
+ user_name = instance.proposal.user.user.first_name+instance.proposal.user.user.last_name
return 'sample_notebooks/%s/%s' % (user_name, filename.replace(' ', '_'))
class Profile(models.Model):