]> git.parisson.com Git - teleforma.git/commitdiff
fix name
authorGuillaume Pellerin <yomguy@parisson.com>
Thu, 19 Dec 2013 17:27:15 +0000 (18:27 +0100)
committerGuillaume Pellerin <yomguy@parisson.com>
Thu, 19 Dec 2013 17:27:15 +0000 (18:27 +0100)
teleforma/models/core.py

index f5816d4eef34ec16df68b163424718de736435ea..caa8249eac94eed950cadabba87e8d07fbae3e9d 100755 (executable)
@@ -396,7 +396,7 @@ class Document(MediaBase):
     def __unicode__(self):
         strings = []
         if self.period:
-            strings.append(self.period)
+            strings.append(self.period.name)
         if self.course:
             strings.append(self.course.code)
         if self.course_type.all():
@@ -453,7 +453,7 @@ class Media(MediaBase):
     def __unicode__(self):
         strings = []
         if self.period:
-            strings.append(self.period)
+            strings.append(self.period.name)
         if self.course and self.course_type:
             strings.append(self.course.code + ' ' + self.course_type.name)
         elif self.course: