summaryrefslogtreecommitdiff
path: root/tbc/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'tbc/models.py')
-rw-r--r--tbc/models.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tbc/models.py b/tbc/models.py
index a1f2408..4b474f2 100644
--- a/tbc/models.py
+++ b/tbc/models.py
@@ -146,3 +146,6 @@ class SampleNotebook(models.Model):
proposal = models.ForeignKey(Proposal)
name = models.CharField(max_length=40)
sample_notebook = models.FileField(upload_to=get_sample_dir)
+ def __unicode__(self):
+ notebook = self.proposal.accepted.title or 'notebook'
+ return '%s'%(notebook)