From: Guillaume Pellerin Date: Thu, 19 Dec 2013 17:27:15 +0000 (+0100) Subject: fix name X-Git-Tag: 2.8.1-pro~405 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=a0568bb386cf0bf99f916aaad05b75cd8b4d04fe;p=teleforma.git fix name --- diff --git a/teleforma/models/core.py b/teleforma/models/core.py index f5816d4e..caa8249e 100755 --- a/teleforma/models/core.py +++ b/teleforma/models/core.py @@ -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: