]> git.parisson.com Git - teleforma.git/commitdiff
fix types
authoryomguy <yomguy@parisson.com>
Tue, 5 Feb 2013 12:33:53 +0000 (13:33 +0100)
committeryomguy <yomguy@parisson.com>
Tue, 5 Feb 2013 12:33:53 +0000 (13:33 +0100)
teleforma/models/core.py

index fb3488840f01014537374ae646420d62b9d9ec6b..45c95f5b1c046214f1859c3ed12df679b8b66eac 100755 (executable)
@@ -379,7 +379,7 @@ class Document(MediaBase):
             types = ' - '.join([unicode(t) for t in self.course_type.all()])
             strings.append(unicode(types))
         if self.type:
-            strings.append(type.name)
+            strings.append(self.type.name)
         strings.append(self.title)
         return ' - '.join(strings)