]> git.parisson.com Git - teleforma.git/commitdiff
fix again
authoryomguy <yomguy@parisson.com>
Fri, 14 Dec 2012 14:41:06 +0000 (15:41 +0100)
committeryomguy <yomguy@parisson.com>
Fri, 14 Dec 2012 14:41:06 +0000 (15:41 +0100)
teleforma/models/core.py

index ad6a7d41fa5cdc35e47512a42d20c92b648ac93f..557de432a06babbf214b1ccae9b44b07aa366391 100644 (file)
@@ -438,7 +438,7 @@ class Document(MediaBase):
     def __unicode__(self):
         strings = []
         if self.course:
-            strings.append(unicode(self.course))
+            strings.append(self.course.code)
         if self.course_type.all():
             types = ' - '.join([unicode(t) for t in self.course_type.all()])
             strings.append(unicode(types))