From a0568bb386cf0bf99f916aaad05b75cd8b4d04fe Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Thu, 19 Dec 2013 18:27:15 +0100 Subject: [PATCH] fix name --- teleforma/models/core.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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: -- 2.39.5